private void LoadTileDefinitionsAsItemTileDefinitions() { List<ItemDefinition> itemDefinitions = new List<ItemDefinition>(availableConfigs.itemDefinitions); foreach (TileDefinition tileDefinition in availableConfigs.tileDefinitions) { if (tileDefinition.tileType != TileDefinition.EMPTY_TILE_TYPE) { ItemTileDefinition itemTileDefinition = new ItemTileDefinition(); itemTileDefinition.id = tileDefinition.id; itemTileDefinition.description = "--.--"; itemTileDefinition.tileDefinition = tileDefinition; itemDefinitions.Add(itemTileDefinition); } } availableConfigs.itemDefinitions = itemDefinitions.ToArray(); }
public ItemTile(CubeWorld.World.CubeWorld world, ItemTileDefinition itemTileDefinition, int objectId) : base(world, itemTileDefinition, objectId) { this.itemTileDefinition = itemTileDefinition; }