예제 #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;
 }
예제 #2
0
 public ItemStack(Tile tile, int count)
     : this(Item.itemTile, count, tile.index)
 {
 }
예제 #3
0
파일: World.cs 프로젝트: nedearb/Specland
 public bool setTile(int x, int y, Tile tile, World.TileDepth tileDepth)
 {
     return tile == null ? false : setTile(x, y, tile.index, tileDepth);
 }
예제 #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)
 {
 }
예제 #5
0
 public int getPower(Tile.Material material)
 {
     return Game.instance.inventory.applyMiningPowerModifier(powers[(int)material]);
 }