Page Menu
Home
Wildfire Games
Search
Configure Global Search
Log In
Paste
P300
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Itms
on Sun, Sep 15, 6:44 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Referenced Files
F5196252: raw-paste-data.txt
Sun, Sep 15, 6:44 PM
2024-09-15 18:44:06 (UTC+2)
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 paste.
Sun, Sep 15, 6:44 PM
2024-09-15 18:44:06 (UTC+2)
Itms
created this object with visibility "Public (No Login Required)".
Log In to Comment