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); }
// 公共函数-以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); }
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); }