mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-04 12:15:58 +00:00
CResTypeInfo: Make use of in-class initializers where applicable
Same behavior, less code.
This commit is contained in:
parent
b77f52bb0e
commit
a612751cb0
@ -8,9 +8,6 @@ CResTypeInfo::CResTypeInfo(EResourceType Type, const TString& rkTypeName, const
|
||||
: mType(Type)
|
||||
, mTypeName(rkTypeName)
|
||||
, mRetroExtension(rkRetroExtension)
|
||||
, mCanBeSerialized(false)
|
||||
, mCanHaveDependencies(true)
|
||||
, mCanBeCreated(false)
|
||||
{
|
||||
#if !PUBLIC_RELEASE
|
||||
ASSERT(smTypeMap.find(Type) == smTypeMap.end());
|
||||
|
@ -21,9 +21,9 @@ class CResTypeInfo
|
||||
TString mTypeName;
|
||||
std::vector<SGameExtension> mCookedExtensions;
|
||||
TString mRetroExtension; // File extension in Retro's directory tree. We don't use it directly but it is needed for generating asset ID hashes
|
||||
bool mCanBeSerialized;
|
||||
bool mCanHaveDependencies;
|
||||
bool mCanBeCreated;
|
||||
bool mCanBeSerialized = false;
|
||||
bool mCanHaveDependencies = true;
|
||||
bool mCanBeCreated = false;
|
||||
|
||||
static std::unordered_map<EResourceType, std::unique_ptr<CResTypeInfo>> smTypeMap;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user