Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 17, 2009, 3:42:39 PM (15 years ago)
Author:
rgrieder
Message:

Added class to handle handle resources more easily via Ogre::ResourceGroupManager.
And modified the XMLFile to store the resource group as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/src/core/XMLFile.h

    r3196 r5653  
    4040    {
    4141        public:
    42             XMLFile(const std::string& filename) : filename_(filename) {}
    43             XMLFile(const std::string& filename, const ClassTreeMask& mask) : filename_(filename), mask_(mask) {};
     42            XMLFile(const std::string& filename, const std::string& resourceGroup = "General")
     43                : filename_(filename)
     44                , group_(resourceGroup)
     45            { }
     46            XMLFile(const ClassTreeMask& mask, const std::string& filename, const std::string& resourceGroup = "General")
     47                : filename_(filename)
     48                , group_(resourceGroup)
     49                , mask_(mask)
     50            { }
    4451
    4552            const std::string& getFilename() const { return this->filename_; }
     53            const std::string& getResourceGroup() const { return this->group_; }
    4654            const ClassTreeMask& getMask() const { return this->mask_; }
    4755
    4856        private:
    4957            std::string filename_;
     58            std::string group_;
    5059            ClassTreeMask mask_;
    5160    };
Note: See TracChangeset for help on using the changeset viewer.