示例#1
0
            public override void draw(DrawContext display, Point pt, int heightCutDiff)
            {
                TwoDimStructure o = (TwoDimStructure)owner;

                if (heightCutDiff < 0 || heightCutDiff >= o.type.height)
                {
                    o.sprites[x, y].draw(display.surface, pt);
                }
                else
                {
                    ResourceUtil.emptyChip.drawShape(display.surface, pt, o.heightCutColor);
                }
            }
示例#2
0
 protected internal SimpleStructureVoxel(TwoDimStructure _owner, byte _x, byte _y, Location _loc)
     : base(_owner, _loc)
 {
     this.x = _x;
     this.y = _y;
 }