Ejemplo n.º 1
0
 public TileMustRestOn(string name, RenderType renderType, Material material, int textureX, int textureY, int x8th, int y8th, int restOnX, int restOnY, Tile[] restOns, bool drop)
     : base(name, renderType, material, textureX, textureY)
 {
     this.x8th = x8th;
     this.y8th = y8th;
     this.restOnX = restOnX;
     this.restOnY = restOnY;
     this.restOns = restOns;
     this.drop = drop;
 }
Ejemplo n.º 2
0
 public ItemStack(Tile tile, int count)
     : this(Item.itemTile, count, tile.index)
 {
 }
Ejemplo n.º 3
0
 public bool setTile(int x, int y, Tile tile, World.TileDepth tileDepth)
 {
     return tile == null ? false : setTile(x, y, tile.index, tileDepth);
 }
Ejemplo n.º 4
0
 public TileMustRestOn(string name, RenderType renderType, Material material, int textureX, int textureY, int x8th, int y8th, int restOnX, int restOnY, Tile restOn, bool drop)
     : this(name, renderType, material, textureX, textureY, x8th, y8th, restOnX, restOnY, new Tile[] { restOn }, drop)
 {
 }
Ejemplo n.º 5
0
 public int getPower(Tile.Material material)
 {
     return Game.instance.inventory.applyMiningPowerModifier(powers[(int)material]);
 }