public virtual void UpdateLogic(OfficeWorld officeWorld, Time timeElapsed) { foreach (AObject lObject in this.objectsInsideLayer) { lObject.UpdateLogic(officeWorld, timeElapsed); } }
public void Dispose(OfficeWorld world) { foreach (AObject lObject in this.objectsInsideLayer) { lObject.Dispose(world); world.NotifyObjectDestroyed(this, lObject); } this.objectsInsideLayer.Clear(); }
public void AddObject(OfficeWorld world, AObject lObject) { this.objectsInsideLayer.Add(lObject); world.NotifyObjectCreated(this, lObject); }