Changeset 332 for code/branches/merger/src/network/GameStateManager.h
- Timestamp:
- Nov 28, 2007, 5:20:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merger/src/network/GameStateManager.h
r278 r332 13 13 #define NETWORK_GAMESTATEMANAGER_H 14 14 15 #include "Synchronisable.h" 16 #include "orxonox/core/IdentifierIncludes.h" 17 #include "orxonox/core/Iterator.h" 18 15 19 namespace network { 16 20 … … 20 24 * data: pointer to the data allocated in the memory 21 25 */ 22 struct GameState{ 26 struct GameState{ 27 int id; 23 28 int size; 24 29 unsigned char *data; … … 36 41 GameStateManager(); 37 42 ~GameStateManager(); 38 GameState getSnapshot( );43 GameState getSnapshot(int id); 39 44 bool loadSnapshot(GameState state); 40 45 private: 41 46 bool removeObject(orxonox::Iterator<Synchronisable> it); 47 42 48 }; 43 49
Note: See TracChangeset
for help on using the changeset viewer.