/// <summary> /// Remove a GameItem from the GameItem list /// </summary> /// <param name="item"></param> internal void GameItemDestroyed(GameItem item) { Debug.Assert(item != null, @"(game, GameItemDestroyed) Item is null"); Debug.Assert(_items.Contains(item), @"(game, GameItemDestroyed) Item not in gameitemlist"); _items.Remove(item); Debug.Assert(!_items.Contains(item), @"(game, GameItemDestroyed) Item still in gameitemlist"); }
// GameItems Methods /// <summary> /// Add GameItem to GameItem list /// </summary> /// <param name="item"></param> internal void GameItemCreated(GameItem item) { _items.Add(item); }