CGameTemplate: Use in-class initializers where applicable
Same behavior, less code.
This commit is contained in:
parent
332be356de
commit
d9bb255518
|
@ -3,11 +3,7 @@
|
||||||
#include "Core/Resource/Factory/CWorldLoader.h"
|
#include "Core/Resource/Factory/CWorldLoader.h"
|
||||||
#include <Common/Log.h>
|
#include <Common/Log.h>
|
||||||
|
|
||||||
CGameTemplate::CGameTemplate()
|
CGameTemplate::CGameTemplate() = default;
|
||||||
: mFullyLoaded(false)
|
|
||||||
, mDirty(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CGameTemplate::Serialize(IArchive& Arc)
|
void CGameTemplate::Serialize(IArchive& Arc)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,10 +67,10 @@ using SPropertyTemplatePath = TTemplatePath<IProperty>;
|
||||||
/** CGameTemplate - Per-game template data */
|
/** CGameTemplate - Per-game template data */
|
||||||
class CGameTemplate
|
class CGameTemplate
|
||||||
{
|
{
|
||||||
EGame mGame;
|
EGame mGame{};
|
||||||
TString mSourceFile;
|
TString mSourceFile;
|
||||||
bool mFullyLoaded;
|
bool mFullyLoaded = false;
|
||||||
bool mDirty;
|
bool mDirty = false;
|
||||||
|
|
||||||
/** Template arrays */
|
/** Template arrays */
|
||||||
std::map<SObjId, SScriptTemplatePath> mScriptTemplates;
|
std::map<SObjId, SScriptTemplatePath> mScriptTemplates;
|
||||||
|
|
Loading…
Reference in New Issue