Page MenuHomeWildfire Games
Paste P300

(An Untitled Masterwork)
ActivePublic

Authored by Itms on Sun, Sep 15, 6:44 PM.
Tags
None
Referenced Files
F5196252: raw-paste-data.txt
Sun, Sep 15, 6:44 PM
Subscribers
None
Index: binaries/data/mods/public/gui/session/input.js
===================================================================
--- binaries/data/mods/public/gui/session/input.js (revision 30)
+++ binaries/data/mods/public/gui/session/input.js (working copy)
@@ -1620,6 +1620,12 @@
for (let ent in g_Groups.groups[groupId].ents)
toSelect.push(+ent);
+ if (groupId === 9)
+ {
+ let entities = Engine.GuiInterfaceCall("GetPlayerEntities");
+ warn(uneval(entities));
+ }
+
if (action != "add")
g_Selection.reset();
Index: binaries/data/mods/public/simulation/components/GuiInterface.js
===================================================================
--- binaries/data/mods/public/simulation/components/GuiInterface.js (revision 30)
+++ binaries/data/mods/public/simulation/components/GuiInterface.js (working copy)
@@ -1857,6 +1857,12 @@
return reduced;
};
+GuiInterface.prototype.GetPlayerEntities = function(player)
+{
+ let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager);
+ return cmpRangeManager.GetEntitiesByPlayer(player);
+};
+
/**
* Discover if the player has idle units.
*
@@ -2104,6 +2110,7 @@
"PlaySound": 1,
"PlaySoundForPlayer": 1,
"FindIdleUnits": 1,
+ "GetPlayerEntities": 1,
"HasIdleUnits": 1,
"GetTradingRouteGain": 1,
"GetTradingDetails": 1,

Event Timeline

Itms created this object with visibility "Public (No Login Required)".