配置表接入和升级服务器框架到最新版

This commit is contained in:
2025-10-10 17:57:01 +08:00
parent 520d4f37bd
commit 8a302754d6
250 changed files with 6356 additions and 4135 deletions

37
Main/Fantasy.config Normal file
View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<fantasy xmlns="http://fantasy.net/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://fantasy.net/config Fantasy.xsd">
<!-- ~1~ 兼容模式继续使用JSON配置表 @1@ -->
<!-- <configTable path="./../../../Config/Json/Server/" /> -->
<!-- 框架核心配置 -->
<idFactory type="World" />
<network inner="TCP" maxMessageSize="1048560" />
<session idleTimeout="8000" idleInterval="5000" />
<!-- 服务器拓扑结构 -->
<server>
<machines>
<machine id="1" outerIP="127.0.0.1" outerBindIP="127.0.0.1" innerBindIP="127.0.0.1" />
</machines>
<processes>
<process id="1" machineId="1" startupGroup="0" />
</processes>
<worlds>
<world id="1" worldName="测试服" dbConnection="mongodb://127.0.0.1" dbName="fantasy_main" dbType="MongoDB" />
</worlds>
<scenes>
<scene id="1001" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Addressable" networkProtocol="KCP" outerPort="20001" innerPort="11001" sceneType="1" />
<scene id="1002" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Addressable" networkProtocol="" outerPort="0" innerPort="11011" sceneType="2" />
<scene id="1003" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Gate" networkProtocol="KCP" outerPort="20000" innerPort="11021" sceneType="3" />
<scene id="1004" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Game" networkProtocol="" outerPort="0" innerPort="11031" sceneType="4" />
<scene id="1006" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Chat" networkProtocol="" outerPort="0" innerPort="11051" sceneType="8" />
<scene id="1007" processConfigId="1" worldConfigId="1" sceneRuntimeMode="MultiThread"
sceneTypeString="Map" networkProtocol="" outerPort="0" innerPort="11061" sceneType="5" />
</scenes>
</server>
</fantasy>