public ItemData(ItemTileSpec type, int x, int y, int quantity)
 {
     Type     = type;
     X        = x;
     Y        = y;
     Quantity = quantity;
 }
Esempio n. 2
0
        public ItemTile(ItemTileSpec type, int x, int y, int quantity = 1)
            : base(x, y)
        {
            Type     = type;
            Quantity = quantity;

            Speed = randomNumbers.NextDouble() * 0.15 + 0.072;             // [num b/w 0 & 1] * range + minimum
        }