protected internal VoxelImpl(VarHeightBuilding _owner, byte _x, byte _y, byte _z, WorldLocator wloc) : base(_owner, wloc) { this.x = _x; this.y = _y; this.z = _z; }
public override void draw(DrawContext display, Point pt, int heightCutDiff) { VarHeightBuilding o = owner; if (heightCutDiff < 0) { Sprite[] sps = o.type.getSprites(x, y, z, o.height); for (int i = 0; i < sps.Length; i++) { sps[i].draw(display.surface, pt); } } else if (z == 0) { ResourceUtil.emptyChip.drawShape(display.surface, pt, o.heightCutColor); } }