Example #1
0
    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);
    }
Example #2
0
 private bool HasContentType(TileContentType contentType)
 {
     return(GetContent(contentType) != null);
 }
Example #3
0
 private TileContent GetContent(TileContentType contentType)
 {
     return(Content.Find(x => x.GetContentType() == contentType));
 }
Example #4
0
 public TileContentData(TileContentType type, string name)
 {
     Type = type;
     Name = name;
 }