CAudioGroup: Make use of in-class initializers
This commit is contained in:
parent
7ce0e14e29
commit
d223bac56a
|
@ -10,20 +10,19 @@ class CAudioGroup : public CResource
|
||||||
friend class CAudioGroupLoader;
|
friend class CAudioGroupLoader;
|
||||||
|
|
||||||
TString mGroupName;
|
TString mGroupName;
|
||||||
uint32 mGroupID;
|
uint32 mGroupID = UINT32_MAX;
|
||||||
std::vector<uint16> mDefineIDs;
|
std::vector<uint16> mDefineIDs;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CAudioGroup(CResourceEntry *pEntry = 0)
|
explicit CAudioGroup(CResourceEntry *pEntry = nullptr)
|
||||||
: CResource(pEntry)
|
: CResource(pEntry)
|
||||||
, mGroupID(-1)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
inline TString GroupName() const { return mGroupName; }
|
TString GroupName() const { return mGroupName; }
|
||||||
inline uint32 GroupID() const { return mGroupID; }
|
uint32 GroupID() const { return mGroupID; }
|
||||||
inline uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
||||||
inline uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
|
uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CAUDIOGROUP
|
#endif // CAUDIOGROUP
|
||||||
|
|
Loading…
Reference in New Issue