mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-10 00:45:47 -07:00
Reviewed By: bb Differential Revision: https://code.wildfiregames.com/D951 This was SVN commit r20276.
27 lines
654 B
JavaScript
27 lines
654 B
JavaScript
function TerritoryDecayManager() {}
|
|
|
|
TerritoryDecayManager.prototype.Schema =
|
|
"<a:component type='system'/><empty/>";
|
|
|
|
TerritoryDecayManager.prototype.Init = function()
|
|
{
|
|
this.list = new Set();
|
|
};
|
|
|
|
TerritoryDecayManager.prototype.Add = function(ent)
|
|
{
|
|
this.list.add(ent);
|
|
};
|
|
|
|
TerritoryDecayManager.prototype.Remove = function(ent)
|
|
{
|
|
this.list.delete(ent);
|
|
};
|
|
|
|
TerritoryDecayManager.prototype.SetBlinkingEntities = function()
|
|
{
|
|
for (let ent of this.list.values())
|
|
Engine.QueryInterface(ent, IID_TerritoryDecay).IsConnected();
|
|
};
|
|
|
|
Engine.RegisterSystemComponentType(IID_TerritoryDecayManager, "TerritoryDecayManager", TerritoryDecayManager);
|