public override void NetLeaveRoomHandler(NetLeaveRoom data) { base.NetLeaveRoomHandler(data); if (Client.IsConnectedAndReady) { Client.OpLeaveRoom(); } }
/// <summary> // This method is executed when using this.Publish(new NetLeaveRoom()) /// </summary> public virtual void NetLeaveRoomHandler(NetLeaveRoom data) { // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) }