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; }
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 }; }
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); }
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)); }