Пример #1
0
    void Action_123(LanSocket.ClientMsgUnPack msg)
    {
        long   userID     = msg.GetUserID();
        ushort accountLen = msg.ReadUShort();
        string account    = msg.ReadString(accountLen);
        ushort passLen    = msg.ReadUShort();
        string pass       = msg.ReadString(passLen);

        print("Action_123 account: " + account + " pass word: " + pass + " from user: "******"test account";

        sendMsg.Pack16bit((ushort)strAccount.Length);
        sendMsg.PackString(strAccount, (ushort)strAccount.Length);
        string strPass = "******";

        sendMsg.Pack16bit((ushort)strPass.Length);
        sendMsg.PackString(strPass, (ushort)strPass.Length);
        sendMsg.PackEnd();
        m_GameNet.SendTo(ref sendMsg, msg.GetUserID());
    }