Ejemplo n.º 1
0
    public static void SendLoginMsg(string token)
    {
        C2S_Login msg = new C2S_Login();

        msg.token = token;
        wsGame.SendMsg(msg);
    }
Ejemplo n.º 2
0
    public void reqLogin()
    {
        C2S_Login c2s = new C2S_Login();

        c2s.Tag      = (int)CSParam.NetTag.Login;
        c2s.DeviceId = SystemInfo.deviceUniqueIdentifier;

        Socket_C.getInstance().Send(c2s);
    }
Ejemplo n.º 3
0
    // 请求登录战斗服务器
    public void ReqLogin()
    {
        C2S_Login data = new C2S_Login();

        data.Token  = Token;
        data.UserID = UserID;

        Net.Send(MSG.LOGIN, data);
    }
Ejemplo n.º 4
0
        public static S2C_Login GenMsg(C2S_Login req)
        {
            string desJson            = "{\"ret\":\"0\",\"uid\":\"1000\",\"code\":\"1000\"}";
            JavaScriptSerializer js   = new JavaScriptSerializer();
            S2C_Login            resp = js.Deserialize <S2C_Login>(desJson);
            string message            = string.Format("ret={0},uid={1},code={2}", resp.ret, resp.uid, resp.code);

            Console.WriteLine(message);

            return(resp);
        }