Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | GuiInterface.prototype.GetEntityState = function(player, ent) | ||||
if (cmpMirage) | if (cmpMirage) | ||||
ret.mirage = true; | ret.mirage = true; | ||||
let cmpIdentity = Engine.QueryInterface(ent, IID_Identity); | let cmpIdentity = Engine.QueryInterface(ent, IID_Identity); | ||||
if (cmpIdentity) | if (cmpIdentity) | ||||
ret.identity = { | ret.identity = { | ||||
"rank": cmpIdentity.GetRank(), | "rank": cmpIdentity.GetRank(), | ||||
"classes": cmpIdentity.GetClassesList(), | "classes": cmpIdentity.GetClassesList(), | ||||
"visibleClasses": cmpIdentity.GetVisibleClassesList(), | |||||
"selectionGroupName": cmpIdentity.GetSelectionGroupName(), | "selectionGroupName": cmpIdentity.GetSelectionGroupName(), | ||||
"canDelete": !cmpIdentity.IsUndeletable(), | "canDelete": !cmpIdentity.IsUndeletable(), | ||||
"hasSomeFormation": cmpIdentity.HasSomeFormation(), | "hasSomeFormation": cmpIdentity.HasSomeFormation(), | ||||
"formations": cmpIdentity.GetFormationsList() | "formations": cmpIdentity.GetFormationsList() | ||||
}; | }; | ||||
let cmpPosition = Engine.QueryInterface(ent, IID_Position); | let cmpPosition = Engine.QueryInterface(ent, IID_Position); | ||||
if (cmpPosition && cmpPosition.IsInWorld()) | if (cmpPosition && cmpPosition.IsInWorld()) | ||||
▲ Show 20 Lines • Show All 1,778 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator