CyclicSet; commander task distribution; fixed AIScoutLocation

This commit is contained in:
Robert MacGregor 2015-06-27 20:43:20 -04:00
parent 088d7fee8e
commit 92007e9bc7
7 changed files with 218 additions and 37 deletions

View file

@ -12,6 +12,8 @@ exec("scripts/DXAI/helpers.cs");
exec("scripts/DXAI/config.cs");
exec("scripts/DXAI/aicommander.cs");
exec("scripts/DXAI/aiconnection.cs");
exec("scripts/DXAI/priorityqueue.cs");
exec("scripts/DXAI/cyclicset.cs");
// General DXAI API implementations
function DXAI::cleanup()
@ -90,6 +92,9 @@ function DXAI::update()
if (isEventPending($DXAI::updateHandle))
cancel($DXAI::updateHandle);
if (!isObject(Game))
return;
// Check if the bound functions are overwritten by the current gamemode, or if something
// may have invalidated our hooks
if ($DXAI::System::InvalidatedEnvironment && $DXAI::System::Setup)