public bool UsesType(GameObjectType tile) { for (int row = 0; row < tiles.GetLength(1); row++) { for (int column = 0; column < tiles.GetLength(0); column++) { if (tiles[column, row].ParentType == tile) { return(true); } } } return(false); }
public void AddType(GameObjectType newType) { Types.Add(newType); }