public BlockTypes(ItemTypes itemTypes) { Rock = new StandardBlockType( id: 1, name: "Rock", image: LoadImage("Blocks\\Rock"), droppedItems: new Dictionary <StandardItemType, int> { { itemTypes.Rock, 1 } }); Dirt = new StandardBlockType( id: 2, name: "Dirt", image: LoadImage("Blocks\\Dirt"), droppedItems: new Dictionary <StandardItemType, int> { { itemTypes.Rock, 1 } }); DirtWithGrass = new StandardBlockType( id: 3, name: "DirtWithGrass", image: LoadImage("Blocks\\DirtWithGrass"), droppedItems: new Dictionary <StandardItemType, int> { { itemTypes.Rock, 1 } }); IronOreDeposit = new StandardBlockType( id: 4, name: "Iron Ore Deposit", image: LoadImage("Blocks\\IronOreDeposit"), droppedItems: new Dictionary <StandardItemType, int> { { itemTypes.IronOre, 1 } }); CoalDeposit = new StandardBlockType( id: 5, name: "Coal Deposit", image: LoadImage("Blocks\\CoalDeposit"), droppedItems: new Dictionary <StandardItemType, int> { { itemTypes.Coal, 1 } }); Grass = new GrassBlockType( id: 6, name: "Grass", image: LoadImage("Blocks\\Grass")); Reed = new ReedBlockType( id: 7, name: "Reed", image: LoadImage("Blocks\\Reed")); Concrete = new StructuralBlockType( id: 8, name: "Stone Wall", image: LoadImage("Blocks\\Concrete"), blueprint: new BlockBlueprint(new List <BlockBlueprintComponent> { new BlockBlueprintComponent(1, itemTypes.Rock, 10f) })); IronPlate = new StructuralBlockType( id: 9, name: "Iron Plate", image: LoadImage("Blocks\\IronPlate"), blueprint: new BlockBlueprint(new List <BlockBlueprintComponent> { new BlockBlueprintComponent(1, itemTypes.Iron, 10f) })); BlastFurnace = new BlastFurnaceBlockType( id: 10, name: "Blast Furnace", image: LoadImage("Blocks\\BlastFurnace"), blueprint: new BlockBlueprint(new List <BlockBlueprintComponent> { new BlockBlueprintComponent(1, itemTypes.Rock, 10f) })); }
public GrassBlock(GrassBlockType blockType) : base(blockType) { GrassBlockType = blockType; }