Changeset 1901 for code/branches/network/src/network/Synchronisable.h
- Timestamp:
- Oct 12, 2008, 12:15:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Synchronisable.h
r1834 r1901 57 57 bidirectional=0x3 58 58 }; 59 59 } 60 61 namespace syncmode{ 62 enum mode{ 63 one=0, 64 always=1 65 }; 60 66 } 61 67 … … 66 72 67 73 struct synchronisableHeader{ 68 u nsigned int size;69 bool dataAvailable ;70 u nsigned int objectID;71 u nsigned int classID;74 uint32_t size:31; 75 bool dataAvailable:1; 76 uint32_t objectID; 77 uint32_t classID; 72 78 }; 73 79 … … 97 103 static void setClient(bool b); 98 104 99 static Synchronisable *fabricate(u nsigned char*& mem, int mode=0x0);105 static Synchronisable *fabricate(uint8_t*& mem, int mode=0x0); 100 106 static bool deleteObject(unsigned int objectID); 101 107 static Synchronisable *getSynchronisable(unsigned int objectID); … … 114 120 115 121 private: 116 bool getData(u nsigned char*& men, unsigned int id, int mode=0x0);117 int getSize(unsigned int id, int mode=0x0);118 bool updateData(u nsigned char*& mem, int mode=0x0);119 bool isMyData(u nsigned char* mem);122 bool getData(uint8_t*& men, unsigned int id, int mode=0x0); 123 uint32_t getSize(unsigned int id, int mode=0x0); 124 bool updateData(uint8_t*& mem, int mode=0x0); 125 bool isMyData(uint8_t* mem); 120 126 bool doSelection(unsigned int id); 121 127 bool isMyTick(unsigned int id);
Note: See TracChangeset
for help on using the changeset viewer.