Changeset 237 for code/branches/network/src/network/Synchronisable.h
- Timestamp:
- Nov 21, 2007, 6:08:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Synchronisable.h
r230 r237 13 13 #define NETWORKSYNCHRONISABLE_H 14 14 15 #include <list> 16 15 17 namespace network { 16 18 19 20 struct syncData{ 21 int length; 22 int classID; 23 int objectID; 24 unsigned char *data; 25 }; 26 27 typedef struct synchronisableVariable{ 28 int size; 29 const void *var; 30 }SYNCVAR; 31 32 17 33 /** 18 34 * This class is the base class of all the Objects in the universe that need to be synchronised over the network … … 22 38 class Synchronisable{ 23 39 public: 24 40 Synchronisable(); 25 41 26 ~Synchronisable(); 42 ~Synchronisable(); 43 int objectID; 44 int classID; 45 46 void registerVar(const void *var, int size); 47 syncData getData(); 48 bool updateData(syncData vars); 49 virtual void registerAllVariables(); 27 50 51 private: 52 std::list<SYNCVAR> syncList; 28 53 }; 29 54
Note: See TracChangeset
for help on using the changeset viewer.