CWorld: Separate enum definition from declaration

Allows more flexibility if anything ever gets moved around and is
arguably nicer to read.
This commit is contained in:
Lioncash 2020-04-11 15:28:58 -04:00
parent 515103aa92
commit 01bb0f3840
1 changed files with 7 additions and 3 deletions

View File

@ -38,13 +38,15 @@ public:
};
class CDummyWorld : public IWorld {
bool x4_loadMap;
enum class Phase {
Loading,
LoadingMap,
LoadingMapAreas,
Done,
} x8_phase = Phase::Loading;
};
bool x4_loadMap;
Phase x8_phase = Phase::Loading;
CAssetId xc_mlvlId;
CAssetId x10_strgId;
CAssetId x14_savwId;
@ -112,7 +114,9 @@ private:
LoadingSkyBox,
LoadingSoundGroups,
Done,
} x4_phase = Phase::Loading;
};
Phase x4_phase = Phase::Loading;
CAssetId x8_mlvlId;
CAssetId xc_strgId;
CAssetId x10_savwId;