Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 5:16:10 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: Taken out the old ResourceManager.
On the way, i had to desintegrate the old MD3-model loading process (via ResourceManager) MD3 is untouched, but also not loaded anymore neither from ResourceMangers nor from the WorldEntity

@patrick: MD3-ModelLoading class must be implemented… this should be quite easy, with the way MD3 is, and the new Resource-paradigm
cheers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/resource.cc

    r9800 r9836  
    1717
    1818#include "resource.h"
    19 #include "new_resource_manager.h"
     19#include "resource_manager.h"
    2020
    2121#include "debug.h"
     
    4747  std::string NewResource::locateFile(const std::string& fileName) const
    4848  {
    49     if ((NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).exists() )
    50       return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
     49    if ((ResourceManager::getInstance()->mainGlobalPath() + File(fileName)).exists() )
     50      return (ResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
    5151
    5252    std::string locatedFile;
    53     locatedFile = locateFileInSubDir(NewResourceManager::getInstance()->mainGlobalPath(), fileName);
     53    locatedFile = locateFileInSubDir(ResourceManager::getInstance()->mainGlobalPath(), fileName);
    5454    if (!locatedFile.empty())
    5555    {
     
    6161      return fileName;
    6262
    63     return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
     63    return (ResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
    6464  }
    6565
     
    115115  KeepLevel::KeepLevel(const std::string& keepLevelName)
    116116  {
    117     this->_keepLevel = NewResourceManager::getInstance()->getKeepLevelID(keepLevelName);
     117    this->_keepLevel = ResourceManager::getInstance()->getKeepLevelID(keepLevelName);
    118118  }
    119119
    120120  const std::string& KeepLevel::name() const
    121121  {
    122     return NewResourceManager::getInstance()->getKeepLevelName(this->_keepLevel);
     122    return ResourceManager::getInstance()->getKeepLevelName(this->_keepLevel);
    123123  }
    124124
     
    141141      : _id(-1), _typeName(typeName)
    142142  {
    143     NewResourceManager::getInstance()->registerType(this);
     143    ResourceManager::getInstance()->registerType(this);
    144144    PRINTF(4)("Created ResourceType '%s'\n", typeName.c_str());
    145145  }
     
    147147  Type::~Type()
    148148  {
    149     NewResourceManager::getInstance()->unregisterType(this);
     149    ResourceManager::getInstance()->unregisterType(this);
    150150  }
    151151
Note: See TracChangeset for help on using the changeset viewer.