예제 #1
0
        public ItemTypes()
        {
            Rock = new StandardItemType(
                1,
                name: "Rock",
                mass: 2.50f,
                volume: 1f,
                icon: LoadImage("Items\\Rock.png"));

            IronOre = new StandardItemType(
                2,
                name: "Iron Ore",
                mass: 7.874f,
                volume: 1f,
                icon: LoadImage("Items\\IronOre.png"));

            Coal = new StandardItemType(
                3,
                name: "Coal",
                mass: 2.26f,
                volume: 1f,
                icon: LoadImage("Items\\Coal.png"));

            Iron = new StandardItemType(
                4,
                name: "Iron",
                mass: 7.874f,
                volume: 1f,
                icon: LoadImage("Items\\Iron.png"));
        }
예제 #2
0
 public StandardItem(StandardItemType itemType)
     : base(itemType)
 {
 }