|  |  | 
 |  |  | import PlayerGeTui
 | 
 |  |  | import PlayerStore
 | 
 |  |  | import GameWorldActionControl
 | 
 |  |  | import PlayerFBHelpBattle
 | 
 |  |  | import GMT_CTG
 | 
 |  |  | import PyGameData
 | 
 |  |  | import GMShell
 | 
 |  |  | 
 |  |  | #  @remarks 登陆顺序, PlayerLogin->PlayerLoadMapState(PlayerLoginLoadMapOK), 此处未设置初始化状态
 | 
 |  |  | def __Func_PlayerLogin(curPlayer, tick):
 | 
 |  |  |     
 | 
 |  |  |     GameWorld.Log("__Func_PlayerLogin mapID=%s" % curPlayer.GetMapID(), curPlayer.GetPlayerID())
 | 
 |  |  |     curPlayer.SetDict(ChConfig.Def_PDict_LoginMapID, curPlayer.GetMapID())
 | 
 |  |  |     #玩家在线时间初始化
 | 
 |  |  |     InitPlayerOnLineTime(curPlayer, tick)
 | 
 |  |  |     #玩家响应信息初始化
 | 
 |  |  | 
 |  |  |         GameWorldActionControl.OnPlayerLogin(curPlayer)
 | 
 |  |  |         #玩家等级记录
 | 
 |  |  |         PyGameData.g_todayPlayerLVDict[curPlayer.GetID()] = curPlayer.GetLV()
 | 
 |  |  |         #副本助战
 | 
 |  |  |         PlayerFBHelpBattle.OnHelpPlayerLogin(curPlayer)
 | 
 |  |  |         
 | 
 |  |  |         GMShell.OnPlayerLogin(curPlayer)
 | 
 |  |  |         GMT_CTG.OnPlayerLogin(curPlayer)
 | 
 |  |  | 
 |  |  |     elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr9:
 | 
 |  |  |         PlayerControl.SetVIPExpireTime(curPlayer, packValue)
 | 
 |  |  |         
 | 
 |  |  |     elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr10:
 | 
 |  |  |         PlayerControl.SetChatBubbleBox(curPlayer, packValue)
 | 
 |  |  |          | 
 |  |  |     elif packType == IPY_GameServer.CDBPlayerRefresh_ExAttr11:
 | 
 |  |  |         PlayerControl.SetTodayXianyuanCoin(curPlayer, packValue)
 | 
 |  |  | 
 | 
 |  |  |     elif packType == IPY_GameServer.CDBPlayerRefresh_OperateInfo:
 | 
 |  |  |         curPlayer.SetOperateInfo(packValue);
 | 
 |  |  |     
 | 
 |  |  | 
 |  |  |     PlayerTeam.PlayerTeamMemberRefresh(curPlayer, packType, packValue, tick)
 | 
 |  |  |     #家族刷新
 | 
 |  |  |     PlayerFamily.PlayerRefresh(curPlayer, tick)
 | 
 |  |  | 
 | 
 |  |  |     #副本助战
 | 
 |  |  |     PlayerFBHelpBattle.UpdateCheckInPlayerInfoByRefresh(curPlayer, packType, packValue)
 | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | ## 玩家切换地图的响应(参数 -> 当前玩家,当前时间)
 | 
 |  |  | 
 |  |  |     #改到mapServer登录成功通知
 | 
 |  |  |     #Sync_PyServerDataTimeToClient(curPlayer, tick)
 | 
 |  |  |     
 | 
 |  |  |     #PlayerTeam.OnPlayerReadMapOK(curPlayer, tick)
 | 
 |  |  |     PlayerTeam.OnPlayerReadMapOK(curPlayer, tick)
 | 
 |  |  |     
 | 
 |  |  |     #刷新人物日期状态
 | 
 |  |  |     PlayerEventCounter.UpdatePlayerLoginTime(curPlayer)
 |