public override async Task Enter() { var result = await Miniroom.Enter(this); if (result != MiniroomEnterResult.Success) { await User.Interact(close : true); using var p = new Packet(SendPacketOperations.MiniRoom); p.Encode <byte>((byte)MiniroomAction.MRP_EnterResult); p.Encode <byte>(0x0); p.Encode <byte>((byte)result); await User.SendPacket(p); } }
public override async Task Leave() { await Miniroom.Leave(this); await User.Interact(close : true); }