pruning refs to Game.world

This commit is contained in:
Bob
2010-08-20 17:46:58 +12:00
parent 0e71af25f4
commit 3f68330c70
13 changed files with 30 additions and 17 deletions

View File

@@ -45,7 +45,9 @@ namespace OpenRA.Traits
public bool IsUsed;
public bool IsAvailable;
public bool IsReady { get { return IsAvailable && RemainingTime == 0; } }
public readonly Player Owner;
protected readonly Actor Self;
protected readonly Player Owner;
bool notifiedCharging;
bool notifiedReady;
@@ -54,6 +56,7 @@ namespace OpenRA.Traits
{
Info = info;
RemainingTime = TotalTime;
Self = self;
Owner = self.Owner;
self.Trait<TechTreeCache>().Add( Info.Prerequisites.Select( a => Rules.Info[ a.ToLowerInvariant() ] ).ToList(), this );