Misc code improvements

This commit is contained in:
abcdefg30
2020-09-25 17:04:48 +02:00
committed by Paul Chote
parent 10f645bf77
commit 718cf37146
4 changed files with 37 additions and 28 deletions

View File

@@ -102,6 +102,10 @@ namespace OpenRA.Mods.Common.Traits
public readonly Player Player;
readonly Predicate<Actor> unitCannotBeOrdered;
readonly List<Actor> unitsHangingAroundTheBase = new List<Actor>();
// Units that the bot already knows about. Any unit not on this list needs to be given a role.
readonly List<Actor> activeUnits = new List<Actor>();
public List<Squad> Squads = new List<Squad>();
@@ -110,10 +114,6 @@ namespace OpenRA.Mods.Common.Traits
IBotNotifyIdleBaseUnits[] notifyIdleBaseUnits;
CPos initialBaseCenter;
List<Actor> unitsHangingAroundTheBase = new List<Actor>();
// Units that the bot already knows about. Any unit not on this list needs to be given a role.
List<Actor> activeUnits = new List<Actor>();
int rushTicks;
int assignRolesTicks;