CVirtualDirectory: Add const getters

Allows data retrieval even with const variants of virtual directories.
This commit is contained in:
Lioncash 2020-07-05 10:22:53 -04:00
parent 97fa0c7f2d
commit a8e51f86d7
1 changed files with 6 additions and 4 deletions

View File

@ -54,8 +54,10 @@ public:
uint32 NumSubdirectories() const { return mSubdirectories.size(); }
CVirtualDirectory* SubdirectoryByIndex(uint32 Index) { return mSubdirectories[Index]; }
const CVirtualDirectory* SubdirectoryByIndex(uint32 Index) const { return mSubdirectories[Index]; }
uint32 NumResources() const { return mResources.size(); }
CResourceEntry* ResourceByIndex(uint32 Index) { return mResources[Index]; }
const CResourceEntry* ResourceByIndex(uint32 Index) const { return mResources[Index]; }
};
#endif // CVIRTUALDIRECTORY