Changeset 6387 for code/branches/presentation2/src/libraries/network/synchronisable/SynchronisableVariable.h
- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/network/synchronisable/SynchronisableVariable.h
r6192 r6387 41 41 42 42 namespace orxonox{ 43 43 44 44 namespace VariableDirection{ 45 45 enum Value{ … … 54 54 }; 55 55 } 56 56 57 57 class _NetworkExport SynchronisableVariableBase 58 58 { … … 85 85 NetworkCallbackBase *callback_; 86 86 }; 87 87 88 88 template <class T> 89 89 class SynchronisableVariableBidirectional: public SynchronisableVariable<T> … … 92 92 SynchronisableVariableBidirectional(T& variable, uint8_t master=Bidirectionality::ServerMaster, NetworkCallbackBase *cb=0); 93 93 virtual ~SynchronisableVariableBidirectional(); 94 94 95 95 virtual inline uint8_t getMode(){ return 0x3; } //this basically is a hack ^^ 96 96 virtual inline uint32_t getData(uint8_t*& mem, uint8_t mode); … … 112 112 } 113 113 } 114 114 115 115 template <class T> SynchronisableVariable<T>::~SynchronisableVariable() 116 116 { … … 253 253 return returnSize( this->variable_ ) + sizeof(varReference_); 254 254 } 255 255 256 256 257 257 }
Note: See TracChangeset
for help on using the changeset viewer.