Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2013, 9:07:38 PM (11 years ago)
Author:
landauf
Message:

made IdentifierManager a self-initializing singleton

Location:
code/branches/core6/src/libraries/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/network/packet/ClassID.cc

    r9564 r9640  
    5555
    5656  //calculate total needed size (for all strings and integers)
    57   std::map<std::string, Identifier*>::const_iterator it = IdentifierManager::getStringIdentifierMapBegin();
    58   for(;it != IdentifierManager::getStringIdentifierMapEnd();++it){
     57  std::map<std::string, Identifier*>::const_iterator it = IdentifierManager::getInstance().getStringIdentifierMapBegin();
     58  for(;it != IdentifierManager::getInstance().getStringIdentifierMapEnd();++it){
    5959    id = it->second;
    6060    if(id == NULL || !id->hasFactory())
     
    129129
    130130  //clear the map of network ids
    131   IdentifierManager::clearNetworkIDs();
     131  IdentifierManager::getInstance().clearNetworkIDs();
    132132
    133133  orxout(verbose, context::packets) << "=== processing classids: " << endl;
  • code/branches/core6/src/libraries/network/synchronisable/Synchronisable.cc

    r9631 r9640  
    8080  {
    8181    // delete callback function objects
    82     if(!IdentifierManager::isCreatingHierarchy()){
     82    if(!IdentifierManager::getInstance().isCreatingHierarchy()){
    8383      // remove object from the static objectMap
    8484      if (this->objectMode_ != 0x0 && (Host::running() && Host::isServer()))
Note: See TracChangeset for help on using the changeset viewer.