Add generation counting to Actor and Target

This allows us to invalidate targets based on arbitrary conditions,
just by bumping the actor's generation number.

The next patches will use this.
This commit is contained in:
Chris Forbes
2013-06-13 09:38:07 +12:00
parent a9b6a94ade
commit 5bc47f4834
2 changed files with 5 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ namespace OpenRA
Activity currentActivity;
public Group Group;
public int Generation;
internal Actor(World world, string name, TypeDictionary initDict )
{