Ejemplo n.º 1
0
        private static void OnOpen()
        {
            // Notify ConnectionWatchdog that connection is ok
            ConnectionWatchdog.OnOpen();

            // observable
            FoolObservable.OnConnectedToGameServer();

            IsConnectingToGameServer = false;
            IsConnected = true;

            //authorize with token
            ClientSendPackets.Send_Authorize(myToken);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Give up or leave
 /// </summary>
 public static void LeaveRoom()
 {
     ClientSendPackets.Send_LeaveRoom();
     LocalPlayer.IsInRoom = false;
 }
Ejemplo n.º 3
0
 public static void JoinRoom(long roomId)
 {
     ClientSendPackets.Send_JoinRoom(roomId);
     //todo show 'loading'
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Call to join any room with no matchmaking.
 /// </summary>
 public static void JoinRandom()
 {
     ClientSendPackets.Send_JoinRandom();
 }