Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | function onSimulationUpdate() | ||||
g_EntityStates = {}; | g_EntityStates = {}; | ||||
if (Engine.GuiInterfaceCall("IsTemplateModified")) | if (Engine.GuiInterfaceCall("IsTemplateModified")) | ||||
{ | { | ||||
g_TemplateData = {}; | g_TemplateData = {}; | ||||
Engine.GuiInterfaceCall("ResetTemplateModified"); | Engine.GuiInterfaceCall("ResetTemplateModified"); | ||||
} | } | ||||
g_SimState = undefined; | g_SimState = undefined; | ||||
// Some changes may require re-rendering the selection. | |||||
if (Engine.GuiInterfaceCall("IsSelectionDirty")) | |||||
{ | |||||
g_Selection.onChange(); | |||||
Engine.GuiInterfaceCall("ResetSelectionDirty"); | |||||
} | |||||
if (!GetSimState()) | if (!GetSimState()) | ||||
return; | return; | ||||
GetMultipleEntityStates(g_Selection.toList()); | GetMultipleEntityStates(g_Selection.toList()); | ||||
for (let handler of g_SimulationUpdateHandlers) | for (let handler of g_SimulationUpdateHandlers) | ||||
handler(); | handler(); | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator