0312 升级通知修复 登陆时间修复 切换账号 退出
(cherry picked from commit c1685160b03221e3dbc2619c9b2e3ea1f3838589)
| | |
| | | }
|
| | |
|
| | | }
|
| | | SDKUtility.Instance.RoleLevelUp();
|
| | | }
|
| | | changeLV = value - baseData.LV;
|
| | | baseData.LV = (ushort)value;
|
| | | if (changeLV > 0)
|
| | | {
|
| | | SDKUtility.Instance.RoleLevelUp();
|
| | | }
|
| | | break;
|
| | | case PlayerDataType.TotalExp:
|
| | | baseData.TotalExp = value;
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (package.socketType == ServerType.Main)
|
| | | {
|
| | | SDKUtility.Instance.RoleLogin(package.PlayerID.ToString(),
|
| | | package.PlayerName.Trim().Replace("\0", ""),
|
| | | package.LV.ToString(),
|
| | | package.VIPLv.ToString());
|
| | | }
|
| | | // 转移到登陆时通知的创角时间包
|
| | | // if (package.socketType == ServerType.Main)
|
| | | // {
|
| | | // SDKUtility.Instance.RoleLogin(package.PlayerID.ToString(),
|
| | | // package.PlayerName.Trim().Replace("\0", ""),
|
| | | // package.LV.ToString(),
|
| | | // package.VIPLv.ToString());
|
| | | // }
|
| | |
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var dataMapId = MapUtility.GetDataMapId(mapId);
|
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | |
| | | public class DTCA124_tagMCPlayerInfo : DtcBasic { |
| | | public class DTCA124_tagMCPlayerInfo : DtcBasic |
| | | { |
| | | |
| | | public override void Done(GameNetPackBasic vNetPack) |
| | | { |
| | |
| | | PlayerDatas.Instance.baseData.PlayerName.Trim().Replace("\0", ""), |
| | | TimeUtility.CreateSeconds.ToString()); |
| | | } |
| | | //向SDK发送角色登陆消息,创角时间包A124在角色信息包之后 |
| | | SDKUtility.Instance.RoleLogin(); |
| | | } |
| | | |
| | | } |
| | |
| | | }
|
| | | FreePlatformInfo = null;
|
| | | break;
|
| | | case CodeA2U.FreePlatformSwitchAccountOk:
|
| | | if (onFreePlatformLogoutOk != null)
|
| | | {
|
| | | onFreePlatformLogoutOk();
|
| | | }
|
| | | FreePlatformInfo = null;
|
| | | break;
|
| | | case CodeA2U.FreePlatformLogoutFail:
|
| | | if (onFreePlatformLogoutFail != null)
|
| | | {
|
| | |
| | | }
|
| | | break;
|
| | | case CodeA2U.ExitGame:
|
| | | if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Quick)
|
| | | {
|
| | | Application.Quit();
|
| | | }
|
| | | else
|
| | | {
|
| | | Snxxz.UI.WindowCenter.Instance.Open<Snxxz.UI.ExitGameWin>();
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | SendMessageToSDK(m_Json);
|
| | | }
|
| | |
|
| | | public void RoleLogin(string roleID, string roleName, string lv, string vipLV)
|
| | | public void RoleLogin()
|
| | | {
|
| | | m_Json.Clear();
|
| | | m_Json["code"] = CodeU2A.RoleLogin;
|
| | |
|
| | | m_Json["roleID"] = roleID;
|
| | | m_Json["roleName"] = roleName;
|
| | | m_Json["roleID"] = PlayerDatas.Instance.baseData.PlayerID.ToString();
|
| | | m_Json["roleName"] = PlayerDatas.Instance.baseData.PlayerName;
|
| | | m_Json["sid"] = ServerListCenter.Instance.currentServer.region_flag;
|
| | | m_Json["serverName"] = ServerListCenter.Instance.currentServer.name;
|
| | | m_Json["familyName"] = PlayerDatas.Instance.baseData.FamilyName;
|
| | |
| | | if (StageLoad.Instance.currentStage != null)
|
| | | {
|
| | | if (SDKUtility.Instance.ChannelPlatform != SDKUtility.E_ChannelPlatform.Yj
|
| | | && SDKUtility.Instance.ChannelPlatform != SDKUtility.E_ChannelPlatform.Js)
|
| | | && SDKUtility.Instance.ChannelPlatform != SDKUtility.E_ChannelPlatform.Js
|
| | | && SDKUtility.Instance.ChannelPlatform != SDKUtility.E_ChannelPlatform.Quick
|
| | | )
|
| | | {
|
| | | if (Input.GetKeyDown(KeyCode.Escape))
|
| | | {
|