| | |
| | | # 每整分钟触发一次
|
| | | #检查服务器正式开服
|
| | | DoCheckNewServerOpen(tick)
|
| | | |
| | | #回报数据库当前在线玩家数
|
| | | DisposeGameActivePlayer(tick)
|
| | | #处理游戏世界中的时间事件
|
| | | DisposeGameWorldEvenByTime(tick)
|
| | | GameWorldActionControl.Dispose_OperationActionState()
|
| | |
| | | #处理世界活动
|
| | | DisposeGameWorldGame(tick)
|
| | | #回报数据库当前在线玩家数
|
| | | DisposeGameActivePlayer(tick)
|
| | | #DisposeGameActivePlayer(tick)
|
| | | #同步地图服务器时间
|
| | | Dispose_MapServer_Time(tick)
|
| | | #保存玩家数据
|
| | |
| | | #activePlayerCount = GameWorld.GetPlayerManager().GetActivePlayerCount()
|
| | | #DataRecordPack.DR_OnLinePlayerCount(activePlayerCount, platformOLDict, tjgOnlineCnt)
|
| | | #===========================================================================
|
| | | for platform, playerCnt in platformOLDict.items():
|
| | | DataRecordPack.DR_OnLinePlayerCount(playerCnt, platform, tjgOnlineCnt) # 单平台
|
| | | EventReport.WriteEvent_concurrency(playerCnt, 0, platform) # 单平台 此处不能传脱机挂玩家总数
|
| | | |
| | |
|
| | | isMixture = False #是否混服
|
| | | if isMixture:
|
| | | for platform, playerCnt in platformOLDict.items():
|
| | | DataRecordPack.DR_OnLinePlayerCount(playerCnt, platform, tjgOnlineCnt) # 单平台
|
| | | EventReport.WriteEvent_concurrency(playerCnt, 0, platform) # 单平台 此处不能传脱机挂玩家总数
|
| | | DataRecordPack.DR_OnLinePlayerCount(activePlayerCount, {}, tjgOnlineCnt) # 总在线
|
| | | #EventReport.WriteEvent_concurrency(activePlayerCount, tjgOnlineCnt)
|
| | | else:
|
| | | serverPlatform = GameWorld.GetPlatform()
|
| | | DataRecordPack.DR_OnLinePlayerCount(activePlayerCount, {}, tjgOnlineCnt) # 总在线
|
| | | EventReport.WriteEvent_concurrency(activePlayerCount, tjgOnlineCnt, serverPlatform)
|
| | | #===========================================================================
|
| | |
|
| | | DataRecordPack.DR_OnLinePlayerCount(activePlayerCount, {}, tjgOnlineCnt) # 总在线
|
| | | #EventReport.WriteEvent_concurrency(activePlayerCount, tjgOnlineCnt)
|
| | | #刷新当前地图服务器
|
| | | #===========================================================================
|
| | | # custom_concurrencyMapList = ReadChConfig.GetEvalChConfig("EventReportMapID")
|