Пример #1
0
 public override bool Apply(Point origin, int x, int y, params object[] args)
 {
     GenBase._tiles[x, y].Clear(~(TileDataType.Wiring | TileDataType.Actuator));
     GenBase._tiles[x, y].type = _type;
     GenBase._tiles[x, y].active(active: true);
     if (_doFraming)
     {
         WorldUtils.TileFrame(x, y, _doNeighborFraming);
     }
     return(UnitApply(origin, x, y, args));
 }
Пример #2
0
            public override bool Apply(Point origin, int x, int y, params object[] args)
            {
                ushort wall       = GenBase._tiles[x, y].wall;
                int    wallFrameX = GenBase._tiles[x, y].wallFrameX();
                int    wallFrameY = GenBase._tiles[x, y].wallFrameY();

                GenBase._tiles[x, y].Clear(~(TileDataType.Wiring | TileDataType.Actuator));
                GenBase._tiles[x, y].type = this._type;
                GenBase._tiles[x, y].active(true);
                if (wall > (ushort)0)
                {
                    GenBase._tiles[x, y].wall = wall;
                    GenBase._tiles[x, y].wallFrameX(wallFrameX);
                    GenBase._tiles[x, y].wallFrameY(wallFrameY);
                }
                if (this._doFraming)
                {
                    WorldUtils.TileFrame(x, y, this._doNeighborFraming);
                }
                return(this.UnitApply(origin, x, y, args));
            }
Пример #3
0
 public override bool Apply(Point origin, int x, int y, params object[] args)
 {
     WorldUtils.TileFrame(x, y, _frameNeighbors);
     return(UnitApply(origin, x, y, args));
 }
Пример #4
0
 public override bool Apply(Point origin, int x, int y, params object[] args)
 {
     WorldUtils.ClearWall(x, y, this._frameNeighbors);
     return(this.UnitApply(origin, x, y, args));
 }