public void ShowConstructGhost(Construct construct) { _rotateLeft = () => { construct.RotateRight(); Loc.Current.Get <CursorController>().SetMultiSprite(construct.GetSprite(), (cell) => construct.ValidateStartPos(cell)); }; _rotateRight = () => { construct.RotateLeft(); Loc.Current.Get <CursorController>().SetMultiSprite(construct.GetSprite(), (cell) => construct.ValidateStartPos(cell)); }; Validate = (cell) => construct.ValidateStartPos(cell); Loc.Current.Get <CursorController>().SetMultiSprite(construct.GetSprite(), (cell) => construct.ValidateStartPos(cell)); }
internal Error Rotate(IntPtr src, ref IntPtr dst, int angle, ref GflColor background) { this.ThrowIfDisposed(); if(this._RotateDelegate == null){ this._RotateDelegate = this.LoadMethod<RotateDelegate>("gflRotate"); } return this._RotateDelegate(src, ref dst, angle, ref background); }