BVB Source Codes

CRYENGINE Show ISaveGame.h Source code

Return Download CRYENGINE: download ISaveGame.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __ISAVEGAME_H__
  4. #define __ISAVEGAME_H__
  5.  
  6. #pragma once
  7.  
  8. #include <CryNetwork/SerializeFwd.h>
  9.  
  10. struct ISaveGame
  11. {
  12.         virtual ~ISaveGame(){}
  13.         // initialize - set output path
  14.         virtual bool Init(const char* name) = 0;
  15.  
  16.         // set some basic meta-data
  17.         virtual void       AddMetadata(const char* tag, const char* value) = 0;
  18.         virtual void       AddMetadata(const char* tag, int value) = 0;
  19.         // create a serializer for some data section
  20.         virtual TSerialize AddSection(const char* section) = 0;
  21.         // set a thumbnail.
  22.         // if imageData == 0: only reserves memory and returns ptr to local data
  23.         // if imageData != 0: copies data from imageData into local buffer
  24.         // imageData is in BGR or BGRA
  25.         // returns ptr to internal data storage (size=width*height*depth) if Thumbnail supported,
  26.         // 0 otherwise
  27.         virtual uint8* SetThumbnail(const uint8* imageData, int width, int height, int depth) = 0;
  28.  
  29.         // set a thumbnail from an already present bmp file
  30.         // file will be read on function call
  31.         // returns true if successful, false otherwise
  32.         virtual bool SetThumbnailFromBMP(const char* filename) = 0;
  33.  
  34.         // finish - indicate success (negative success *must* remove file)
  35.         // also calls delete this;
  36.         virtual bool Complete(bool successfulSoFar) = 0;
  37.  
  38.         // returns the filename of this savegame
  39.         virtual const char* GetFileName() const = 0;
  40.  
  41.         // save game reason
  42.         virtual void            SetSaveGameReason(ESaveGameReason reason) = 0;
  43.         virtual ESaveGameReason GetSaveGameReason() const = 0;
  44.  
  45.         virtual void            GetMemoryUsage(ICrySizer* pSizer) const = 0;
  46. };
  47.  
  48. #endif
  49.  
downloadISaveGame.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