Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // PakDoc.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "PakDoc.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPakDoc
  20. IMPLEMENT_DYNCREATE(CPakDoc, CDocument)
  21. CPakDoc::CPakDoc()
  22. {
  23. }
  24. BOOL CPakDoc::OnNewDocument()
  25. {
  26. if (!CDocument::OnNewDocument())
  27. return FALSE;
  28. return TRUE;
  29. }
  30. CPakDoc::~CPakDoc()
  31. {
  32. }
  33. BEGIN_MESSAGE_MAP(CPakDoc, CDocument)
  34. //{{AFX_MSG_MAP(CPakDoc)
  35. // NOTE - the ClassWizard will add and remove mapping macros here.
  36. //}}AFX_MSG_MAP
  37. END_MESSAGE_MAP()
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CPakDoc diagnostics
  40. #ifdef _DEBUG
  41. void CPakDoc::AssertValid() const
  42. {
  43. CDocument::AssertValid();
  44. }
  45. void CPakDoc::Dump(CDumpContext& dc) const
  46. {
  47. CDocument::Dump(dc);
  48. }
  49. #endif //_DEBUG
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CPakDoc serialization
  52. void CPakDoc::Serialize(CArchive& ar)
  53. {
  54. if (ar.IsStoring())
  55. {
  56. // TODO: add storing code here
  57. }
  58. else
  59. {
  60. // TODO: add loading code here
  61. }
  62. }
  63. /////////////////////////////////////////////////////////////////////////////
  64. // CPakDoc commands