/// <summary> /// Initializes a new instance of the <see cref="CoinDoorPlaceSendEvent" /> class. /// </summary> /// <param name="layer">The layer.</param> /// <param name="x">The x-coordinate.</param> /// <param name="y">The y-coordinate.</param> /// <param name="block">The block.</param> /// <param name="deathsRequired">The deaths required.</param> public DeathDoorPlaceSendEvent(Layer layer, int x, int y, DeathDoorBlock block, uint deathsRequired) { this.Block = block; this.X = x; this.Y = y; this.Layer = BlockUtils.CorrectLayer((Block)block, layer); this.DeathsRequired = deathsRequired; }
public UploadRequestEvent GetDeathDoor(int x, int y, DeathDoorBlock block, uint deathsRequired) { var e = new DeathDoorPlaceSendEvent(Layer.Foreground, x, y, block, deathsRequired); return new UploadRequestEvent(e); }
public void UploadDeathDoor(int x, int y, DeathDoorBlock block, uint deathsRequired) { this.Events.Raise(this.GetDeathDoor(x, y, block, deathsRequired)); }
internal void SetDeathDoor(DeathDoorBlock block, uint deathsRequired) { this.BlockType = BlockType.Purple; this.Block = (Block)block; this._data = new BlockData { DeathsRequired = deathsRequired }; }