Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/GameInterface/ActorViewer.cpp
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | else | ||||
debug_warn(L"Failed to load whiteness texture"); | debug_warn(L"Failed to load whiteness texture"); | ||||
} | } | ||||
// Prepare the simulation | // Prepare the simulation | ||||
m.Simulation2.LoadDefaultScripts(); | m.Simulation2.LoadDefaultScripts(); | ||||
m.Simulation2.ResetState(); | m.Simulation2.ResetState(); | ||||
// Set player data | // Set player data | ||||
m.Simulation2.SetMapSettings(m.Simulation2.GetPlayerDefaults()); | m.Simulation2.SetInitAttributesFromSettings(m.Simulation2.GetPlayerDefaults()); | ||||
m.Simulation2.LoadPlayerSettings(true); | m.Simulation2.ParsePlayerSettings(true); | ||||
// Tell the simulation we've already loaded the terrain | // Tell the simulation we've already loaded the terrain | ||||
CmpPtr<ICmpTerrain> cmpTerrain(m.Simulation2, SYSTEM_ENTITY); | CmpPtr<ICmpTerrain> cmpTerrain(m.Simulation2, SYSTEM_ENTITY); | ||||
if (cmpTerrain) | if (cmpTerrain) | ||||
cmpTerrain->ReloadTerrain(false); | cmpTerrain->ReloadTerrain(false); | ||||
// Remove FOW since we're in Atlas | // Remove FOW since we're in Atlas | ||||
CmpPtr<ICmpRangeManager> cmpRangeManager(m.Simulation2, SYSTEM_ENTITY); | CmpPtr<ICmpRangeManager> cmpRangeManager(m.Simulation2, SYSTEM_ENTITY); | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator