BVB Source Codes

CRYENGINE Show XmlSaveGame.h Source code

Return Download CRYENGINE: download XmlSaveGame.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // xml save game - primarily for debug purposes
  4.  
  5. #ifndef __XMLSAVEGAME_H__
  6. #define __XMLSAVEGAME_H__
  7.  
  8. #pragma once
  9.  
  10. #include "ISaveGame.h"
  11.  
  12. class CXmlSaveGame : public ISaveGame
  13. {
  14. public:
  15.         CXmlSaveGame();
  16.         virtual ~CXmlSaveGame();
  17.  
  18.         // ISaveGame
  19.         virtual bool            Init(const char* name);
  20.         virtual void            AddMetadata(const char* tag, const char* value);
  21.         virtual void            AddMetadata(const char* tag, int value);
  22.         virtual uint8*          SetThumbnail(const uint8* imageData, int width, int height, int depth);
  23.         virtual bool            SetThumbnailFromBMP(const char* filename);
  24.         virtual TSerialize      AddSection(const char* section);
  25.         virtual bool            Complete(bool successfulSoFar);
  26.         virtual const char*     GetFileName() const;
  27.         virtual void            SetSaveGameReason(ESaveGameReason reason) { m_eReason = reason; }
  28.         virtual ESaveGameReason GetSaveGameReason() const                 { return m_eReason; }
  29.         virtual void            GetMemoryUsage(ICrySizer* pSizer) const;
  30.         // ~ISaveGame
  31.  
  32. protected:
  33.         virtual bool Write(const char* filename, XmlNodeRef data);
  34.         XmlNodeRef   GetMetadataXmlNode() const;
  35.  
  36. private:
  37.         struct Impl;
  38.         std::unique_ptr<Impl> m_pImpl;
  39.         ESaveGameReason       m_eReason;
  40.  
  41. };
  42.  
  43. #endif
  44.  
downloadXmlSaveGame.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top