local player buildings influence map, incrementally updated.

This commit is contained in:
Chris Forbes
2009-10-13 18:13:22 +13:00
parent e255a48645
commit 0f0b4230c7
6 changed files with 81 additions and 25 deletions

View File

@@ -13,11 +13,14 @@ namespace OpenRa.Game
int lastTime = Environment.TickCount;
const int timestep = 40;
public World(Game game) { this.game = game; }
public void Add(Actor a) { actors.Add(a); }
public void Remove( Actor a ) { actors.Remove( a ); }
public void AddFrameEndTask( Action<World> a ) { frameEndActions.Add( a ); }
public World(Game game) { this.game = game; }
public void Add(Actor a) { actors.Add(a); ActorAdded(a); }
public void Remove(Actor a) { actors.Remove(a); ActorRemoved(a); }
public void AddFrameEndTask( Action<World> a ) { frameEndActions.Add( a ); }
public event Action<Actor> ActorAdded = _ => { };
public event Action<Actor> ActorRemoved = _ => { };
public void Update()
{