Esempio n. 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;
        }
Esempio n. 2
0
        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
            };
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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));
 }