Beispiel #1
0
    void Redirect()
    {
        RedirectReq rdReq = new RedirectReq();

        rdReq.UserId  = Lobby.getInstance().UId;
        rdReq.Svc     = Constants.Svc_Lion; // Dog->Lion
        rdReq.Version = 1;
        rdReq.SubSvc  = 0;

        m_net.SendEnqueue(Constants.Dog_Redirect, 0, rdReq);
    }
Beispiel #2
0
    // 公共函数-以Req开头
    // 快速登录
    public void QuickLogin()
    {
        if (m_clerk == null)
        {
            DebugConsole.Log("Clerk is null");
        }

        QuickLoginInfo quickLoginInfo = new QuickLoginInfo();

        quickLoginInfo.UserId = m_clerk.UId;
        quickLoginInfo.Key    = m_clerk.Key;

        m_net.SendEnqueue(Constants.Tiger_QuickLoginInfo, 0, quickLoginInfo);
    }
Beispiel #3
0
    static public void GetShopItems(WorkDone cb)
    {
        StringValue sv       = new StringValue();
        string      shopName = "GoldShop";

        sv.Value = shopName;
        m_net.SendEnqueue(Constants.Lion_GetShopItems,
                          0,
                          sv,
                          cb);
    }