public TD_Tile_Content Get(TileContentType arg_type) { switch (arg_type) { case TileContentType.DESTINATION: return(Get(prefab_dest_)); case TileContentType.EMPTY: return(Get(prefab_empty_)); case TileContentType.WALL: return(Get(prefab_wall_)); case TileContentType.TOWER: return(Get(prefab_tower_)); case TileContentType.SPAWN: return(Get(prefab_spawn_point_)); case TileContentType.OIL: return(Get(prefab_oil_)); } return(null); }
private bool HasContentType(TileContentType contentType) { return(GetContent(contentType) != null); }
private TileContent GetContent(TileContentType contentType) { return(Content.Find(x => x.GetContentType() == contentType)); }
public TileContentData(TileContentType type, string name) { Type = type; Name = name; }