Exemplo n.º 1
0
 public static ChannalList_Login GetInstance()
 {
     if (ChannalList_Login.instance == null)
     {
         ChannalList_Login.instance = new ChannalList_Login();
     }
     return(ChannalList_Login.instance);
 }
Exemplo n.º 2
0
    public static void Recv_LS_CHANNEL_LIST_ACK(NkDeserializePacket kDeserializePacket)
    {
        LS_CHANNEL_LIST_ACK packet = kDeserializePacket.GetPacket <LS_CHANNEL_LIST_ACK>();

        ChannalList_Login.GetInstance().ClearAll();
        for (byte b = 0; b < packet.NumChannels; b += 1)
        {
            LS_CHANNEL_LIST_ACK.CHANNEL packet2 = kDeserializePacket.GetPacket <LS_CHANNEL_LIST_ACK.CHANNEL>();
            ChannalList_Login.GetInstance().SetInfo(packet2);
        }
    }