Changeset 9909 in orxonox.OLD for branches/network/src/lib/network/handshake.cc
- Timestamp:
- Oct 30, 2006, 10:35:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/handshake.cc
r9869 r9909 22 22 #include "debug.h" 23 23 24 #include "synchronizeable_var/synchronizeable_classid_list.h" 25 26 std::map< std::string, int >* Handshake::classIdList = NULL; 24 27 25 28 ObjectListDefinition(Handshake); … … 32 35 this->registerObject(this, Handshake::_objectList); 33 36 37 if ( !Handshake::classIdList ) 38 { 39 //TODO who else? 40 if ( SharedNetworkData::getInstance()->isMasterServer() ) 41 { 42 Handshake::classIdList = ObjectListBase::createStrToId(); 43 } 44 else 45 { 46 Handshake::classIdList = new std::map< std::string, int >(); 47 } 48 } 34 49 35 50 // register all variable handlers … … 52 67 registerVar( new SynchronizeableIP( &this->proxy2, &this->proxy2, "proxy server 2", PERMISSION_MASTER_SERVER ) ); 53 68 registerVar( new SynchronizeableInt( &this->redirectProxy, &this->redirectProxy, "proxy server redirection flag", PERMISSION_MASTER_SERVER ) ); 69 70 registerVar( new SynchronizeableClassIDList( Handshake::classIdList, Handshake::classIdList, "classId List", PERMISSION_MASTER_SERVER ) ); 54 71 55 72
Note: See TracChangeset
for help on using the changeset viewer.