Ejemplo n.º 1
0
    static void Client_Logined(Message m)
    {
        if ((bool)m.parameters[0])
        {
            LoginScreen.ConfirmedLogin((bool)m.parameters[0]);
            List <string> online = m.parameters[1] as List <string>;
            RoomFindingScreen.players.Clear();
            foreach (var v in online)
            {
                RoomFindingScreen.players.Add(v.ToString());
            }

            string[] channels = new string[] { m.parameters[2] as string };
            ChatChannel.Synchronize(channels, RoomFindingScreen.chatChannels);
        }
        else
        {
            LoginScreen.ConfirmedLogin((bool)m.parameters[0]);
        }
    }