コード例 #1
0
        public PortalPlaceSendEvent(Layer layer, int x, int y, PortalBlock block, uint portalId, uint portalTarget,
            PortalRotation portalRotation)
        {
            this.Block = block;
            this.X = x;
            this.Y = y;
            this.Layer = BlockUtils.CorrectLayer((Block)block, layer);

            this.PortalId = portalId;
            this.PortalTarget = portalTarget;
            this.PortalRotation = portalRotation;
        }
コード例 #2
0
ファイル: WorldBlock.cs プロジェクト: KylerM/CupCake
        internal void SetPortal(PortalBlock block, uint portalId, uint portalTarget, PortalRotation portalRotation)
        {
            this.BlockType = BlockType.Portal;
            this.Block = (Block)block;

            this._data = new BlockData
            {
                PortalId = portalId,
                PortalTarget = portalTarget,
                PortalRotation = portalRotation
            };
        }
コード例 #3
0
ファイル: UploadService.cs プロジェクト: someone243/CupCake
 public UploadRequestEvent GetPortal(int x, int y, PortalBlock block, uint id, uint target,
     PortalRotation rotation)
 {
     var e = new PortalPlaceSendEvent(Layer.Foreground, x, y, block, id, target, rotation);
     return new UploadRequestEvent(e);
 }
コード例 #4
0
ファイル: UploadService.cs プロジェクト: someone243/CupCake
 public void UploadPortal(int x, int y, PortalBlock block, uint id, uint target, PortalRotation rotation)
 {
     this.Events.Raise(this.GetPortal(x, y, block, id, target, rotation));
 }