mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-18 17:35:43 +00:00
Changed EGame to an enum class. Created NGameList and NPropertyMap to change how templates are managed/saved/loaded. Added support for property map keeping track of ID/type pairs.
This commit is contained in:
@@ -42,7 +42,7 @@ CDependencyTree* CGameArea::BuildDependencyTree() const
|
||||
|
||||
pTree->AddDependency(mPathID);
|
||||
|
||||
if (Game() >= eEchoesDemo)
|
||||
if (Game() >= EGame::EchoesDemo)
|
||||
{
|
||||
pTree->AddDependency(mPortalAreaID);
|
||||
pTree->AddDependency(mpPoiToWorldMap);
|
||||
@@ -224,7 +224,7 @@ CScriptObject* CGameArea::SpawnInstance(CScriptTemplate *pTemplate,
|
||||
pInstance->SetRotation(rkRotation.ToEuler());
|
||||
pInstance->SetScale(rkScale);
|
||||
pInstance->SetName(pTemplate->Name());
|
||||
if (pTemplate->Game() < eEchoesDemo) pInstance->SetActive(true);
|
||||
if (pTemplate->Game() < EGame::EchoesDemo) pInstance->SetActive(true);
|
||||
pLayer->AddInstance(pInstance, SuggestedLayerIndex);
|
||||
mObjectMap[InstanceID] = pInstance;
|
||||
return pInstance;
|
||||
|
||||
Reference in New Issue
Block a user