Changeset 7508 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.h
- Timestamp:
- May 3, 2006, 2:29:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.h
r7444 r7508 28 28 #define STATE_SERVER 1 29 29 30 struct StateHistoryEntry 31 { 32 int stateId; 33 byte * data; 34 int dataLength; 35 std::list<int> sizeList; 36 }; 37 38 typedef std::list<StateHistoryEntry*> StateHistory; 39 40 typedef std::vector<StateHistory> UserStateHistory; 41 30 42 enum { 31 43 PERMISSION_OWNER = 1, … … 33 45 }; 34 46 35 typedef std::vector<SynchronizeableVar > SyncVarList;47 typedef std::vector<SynchronizeableVar*> SyncVarList; 36 48 37 49 class NetworkStream; … … 49 61 virtual void varChangeHandler( std::list<int> & id ); 50 62 51 int getStateDiff( int userId, byte* data, int maxLength, int stateId, int priorityTH );52 bool setStateDiff( int userId, byte* data, int length, int stateId );63 int getStateDiff( int userId, byte* data, int maxLength, int stateId, int fromStateId, int priorityTH ); 64 bool setStateDiff( int userId, byte* data, int length, int stateId, int fromStateId ); 53 65 54 66 void registerVar( SynchronizeableVar * var ); … … 80 92 int hostID; //!< my own host id 81 93 bool bSynchronize; //!< do we need beeing synchronized? 94 95 SyncVarList syncVarList; //!< list containing variables to synchronize 96 97 UserStateHistory sentStates; //!< store already sent states to create diffs from 98 UserStateHistory recvStates; //!< store recieved states to apply diffs 82 99 83 100 };
Note: See TracChangeset
for help on using the changeset viewer.