| | |
| | | ## 标记重读配置
|
| | | global PyMongoDataServerConfig
|
| | | global ServersRouteConfig
|
| | | global ServersConfigDict
|
| | |
|
| | | GameWorld.Log("=== 设置重读配置 ===")
|
| | | GameWorld.GetGameWorld().SetGameWorldDict(ShareDefine.Def_Notify_WorldKey_ReloadConfig, 1)
|
| | | PyMongoDataServerConfig = None
|
| | | ServersRouteConfig = None
|
| | | ServersConfigDict = {}
|
| | | OnReloadServersConfig()
|
| | | IpyGameDataPY.IPYData.IpyDataClear()
|
| | | import DataRecordPack
|
| | | DataRecordPack.DR_Reload("config")
|
| | | OnReloadConfig()
|
| | | return
|
| | |
|
| | | def OnReloadServersConfig():
|
| | | global ServersConfigDict
|
| | | ServersConfigDict = {}
|
| | | GetServerConfigDict()
|
| | | import DataRecordPack
|
| | | DataRecordPack.DR_Reload("ServersConfig")
|
| | | return
|
| | |
|
| | | def OnReloadConfig():
|
| | |
| | | if batServerID in ServersConfigDict:
|
| | | continue
|
| | | ServersConfigDict[batServerID] = [groupName, mapID, ShareDefine.serverType_Battle]
|
| | | |
| | | GameWorld.Log("Load ServersConfigDict=%s" % ServersConfigDict)
|
| | | |
| | | return ServersConfigDict
|
| | |
|
| | | ## PyMongoDataServer.ini配置读取
|