ET框架7 StartConfig配置文件分析

StartMachineConfig

Id 内网地址 外网地址 守护进程端口
Id InnerIP OuterIP WatcherPort
int string string string
1 127.0.0.1 127.0.0.1 10000

StartProcessConfig

Id 所属机器 内网端口
Id MachineId InnerPort
int int int
1 1 20001

通过MachineId关联StartMachineConfig
watcher进程通过本机ip对比获取对应的配置,启动进程,根据配置传递process id,其他参数使用启动watcher进程时指定的参数。

StartSceneConfig

Id 所属进程 所属区 类型 名字 外网端口
Id Process Zone SceneType Name OuterPort
int int int string string int
1 1 1 Realm Realm 10002
2 1 1 Gate Gate1 10003
3 1 1 Gate Gate2 10004
4 1 1 Location Location
5 1 1 Map Map1
6 1 1 Map Map2

通过Process关联StartProcessConfig,通过Zone关联StartZoneConfig
server进程会根据启动参数的process获取对应的配置,并创建scene。

StartZoneConfig

Id 数据库地址 数据库名 说明
Id DBConnection DBName Desc
int string string string
1 mongodb://127.0.0.1 ET1 游戏区
2 机器人区
3 路由区

用于指定db

posted @ 2022-08-31 18:05  Aznable  阅读(253)  评论(0编辑  收藏  举报