CVirtualDirectory: Add const getters
Allows data retrieval even with const variants of virtual directories.
This commit is contained in:
parent
97fa0c7f2d
commit
a8e51f86d7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue