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:
@@ -72,6 +72,7 @@ namespace OpenRA
|
||||
|
||||
Activity currentActivity;
|
||||
public Group Group;
|
||||
public int Generation;
|
||||
|
||||
internal Actor(World world, string name, TypeDictionary initDict )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user