コード例 #1
0
ファイル: CursorController.cs プロジェクト: EttienneS/karthus
        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));
        }
コード例 #2
0
 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);
 }