public void OnEntityAdded(Map.GameEntity entity) { objects.Add(entity); if (entity is Map.Unit) { ((Map.Unit)entity).Killed += new Client.Game.Map.Unit.KilledEventHandler(OnUnitKilled); } #if SEE_THROUGH if (entity.SeeThroughable) { seeThroughables.Insert(entity, entity.VisibilityWorldBounding); entity.VisibilityLocalBoundingChanged += new EventHandler(entity_Moved); entity.Moved += new EventHandler(entity_Moved); entity.Removed += new EventHandler(entity_Removed); } #endif }
public void Remove(Map.GameEntity o) { objects.Remove(o); }