Beispiel #1
0
    void OnServerNotifyRoomLeave(ServerMessage.NotifyRoomLeave message)
    {
        // TODO: Display popup notice
        if (message.Reason == RoomLeaveReason.KickedForAfk)
        {
            Popups.MakeMessagePopup(Strings.Popups.KickedForAfk).Show();
        }

        ChangeMenu(ViewBrowser);
    }
Beispiel #2
0
        public void SendRoomLeaveReason(RoomLeaveReason reason)
        {
            var message = new ServerMessage.NotifyRoomLeave(reason);

            Socket.Send(message.AsJson());
        }