Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | |||||
* Unit classes to be checked for the military-only-selection modifier and for the idle-warrior-hotkey. | * Unit classes to be checked for the military-only-selection modifier and for the idle-warrior-hotkey. | ||||
*/ | */ | ||||
var g_MilitaryTypes = ["Melee", "Ranged"]; | var g_MilitaryTypes = ["Melee", "Ranged"]; | ||||
/** | /** | ||||
* Cache the idle worker status. | * Cache the idle worker status. | ||||
*/ | */ | ||||
var g_HasIdleWorker = false; | var g_HasIdleWorker = false; | ||||
/** | |||||
* Default template for markers | |||||
*/ | |||||
var g_Marker = { | |||||
"template": "special/target_marker", | |||||
"duration": 10*1000 | |||||
}; | |||||
function GetSimState() | function GetSimState() | ||||
{ | { | ||||
if (!g_SimState) | if (!g_SimState) | ||||
g_SimState = Engine.GuiInterfaceCall("GetSimulationState"); | g_SimState = Engine.GuiInterfaceCall("GetSimulationState"); | ||||
return g_SimState; | return g_SimState; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,492 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator