提交示例代码
This commit is contained in:
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/.DS_Store
vendored
Normal file
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/.DS_Store
vendored
Normal file
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/ConfigTable/.DS_Store
vendored
Normal file
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/ConfigTable/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/ConfigTable/Excel/.DS_Store
vendored
Normal file
BIN
邮件系统课程完整代码/NuGet/Fantasy.Config/Tools/Exporter/ConfigTable/Excel/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
// 自定义导出配置文件,用于配置自定义导出自定义程序的路径
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"WorksheetNames":["MachineConfig","ProcessConfig","WorldConfig","SceneConfig","SceneTypeConfig"],"Tables":{"MachineConfig":1725984682557,"SceneConfig":1726083372000,"WorldConfig":1724007858627,"ProcessConfig":1725195494442}}
|
||||
@@ -0,0 +1,3 @@
|
||||
{"List":[
|
||||
{"Id":1,"OuterIP":"127.0.0.1","OuterBindIP":"127.0.0.1","InnerBindIP":"127.0.0.1"}
|
||||
]}
|
||||
@@ -0,0 +1,3 @@
|
||||
{"List":[
|
||||
{"Id":1,"MachineId":1,"StartupGroup":0}
|
||||
]}
|
||||
@@ -0,0 +1,6 @@
|
||||
{"List":[
|
||||
{"Id":1001,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeType":"MultiThread","SceneTypeString":"Addressable","NetworkProtocol":null,"OuterPort":0,"InnerPort":11001,"SceneType":2},
|
||||
{"Id":1002,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeType":"MultiThread","SceneTypeString":"Gate","NetworkProtocol":"KCP","OuterPort":20000,"InnerPort":11002,"SceneType":3},
|
||||
{"Id":1003,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeType":"MultiThread","SceneTypeString":"Map","NetworkProtocol":null,"OuterPort":0,"InnerPort":11003,"SceneType":4},
|
||||
{"Id":1004,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeType":"MultiThread","SceneTypeString":"Chat","NetworkProtocol":null,"OuterPort":0,"InnerPort":11004,"SceneType":8}
|
||||
]}
|
||||
@@ -0,0 +1,3 @@
|
||||
{"List":[
|
||||
{"Id":1,"WorldName":"测试服","DbConnection":null,"DbName":"fantasy_main","DbType":"MongoDB"}
|
||||
]}
|
||||
@@ -0,0 +1,27 @@
|
||||
syntax = "proto3";
|
||||
package Sining.Message;
|
||||
message G2A_TestRequest // IRouteRequest,G2A_TestResponse
|
||||
{
|
||||
|
||||
}
|
||||
message G2A_TestResponse // IRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
message G2M_RequestAddressableId // IRouteRequest,M2G_ResponseAddressableId
|
||||
{
|
||||
|
||||
}
|
||||
message M2G_ResponseAddressableId // IRouteResponse
|
||||
{
|
||||
int64 AddressableId = 1; // Map服务器返回的AddressableId
|
||||
}
|
||||
/// 通知Chat服务器创建一个RouteId
|
||||
message G2Chat_CreateRouteRequest // IRouteRequest,Chat2G_CreateRouteResponse
|
||||
{
|
||||
int64 GateRouteId = 1;
|
||||
}
|
||||
message Chat2G_CreateRouteResponse // IRouteResponse
|
||||
{
|
||||
int64 ChatRouteId = 1;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,64 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
// 协议分为:
|
||||
// ProtoBuf:可以在Outer和Inner文件里使用。
|
||||
// MemoryPack:可以在Outer和Inner文件里使用。
|
||||
// Bson:仅支持在Inner文件里使用。
|
||||
// 使用方式:
|
||||
// 在message协议上方添加// Protocol+空格+协议名字
|
||||
// 例如:// Protocol ProtoBuf 或 // Protocol MemoryPack
|
||||
message C2G_TestMessage // IMessage
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message C2G_TestRequest // IRequest,G2C_TestResponse
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message G2C_TestResponse // IResponse
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message C2G_CreateAddressableRequest // IRequest,G2C_CreateAddressableResponse
|
||||
{
|
||||
|
||||
}
|
||||
message G2C_CreateAddressableResponse // IResponse
|
||||
{
|
||||
|
||||
}
|
||||
message C2M_TestMessage // IAddressableRouteMessage
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message C2M_TestRequest // IAddressableRouteRequest,M2C_TestResponse
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message M2C_TestResponse // IAddressableRouteResponse
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
/// 通知Gate服务器创建一个Chat的Route连接
|
||||
message C2G_CreateChatRouteRequest // IRequest,G2C_CreateChatRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
message G2C_CreateChatRouteResponse // IResponse
|
||||
{
|
||||
|
||||
}
|
||||
/// 发送一个Route消息给Chat
|
||||
message C2Chat_TestMessage // ICustomRouteMessage,ChatRoute
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
/// 发送一个RPCRoute消息给Chat
|
||||
message C2Chat_TestMessageRequest // ICustomRouteRequest,Chat2C_TestMessageResponse,ChatRoute
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
message Chat2C_TestMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
string Tag = 1;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
GateRoute = 1001 // Gate
|
||||
ChatRoute = 1002 // Chat
|
||||
@@ -0,0 +1,16 @@
|
||||
# Fantasy-Net.Config
|
||||
在Config文件夹中,存放着Fantasy所需的各种配置文件。这些文件涵盖了多个方面。每个配置文件都有其特定的格式和功能,通过精心设计的这些配置文件,开发团队能够快速调整框架参数,以实现更好的游戏体验,从而提升Fantasy的整体质量。
|
||||
## Excel文件夹
|
||||
里面存放了Fantasy.Net所需的四个Excel配置文件。用户可以利用Fantasy-Net.Exporter工具,依据这四个Excel文件生成相应的JSON文件,以供框架使用。这一过程不仅简化了数据处理,还确保了不同组件之间的无缝对接,使得工作流程更加高效。请确保在导出之前,Excel文件的格式和内容符合要求,以避免产生错误。
|
||||
## Json文件夹
|
||||
在该目录中存放了Fantasy.Net所需的四个JSON配置文件。用户可以根据这四个文件的模板进行添加或修改配置,以满足具体需求。每个项目的功能说明在相应的Excel文件中有详细描述,方便用户理解和使用这些配置文件。我们建议用户仔细阅读Excel文件中的说明,以确保配置的正确性和有效性。
|
||||
## NetworkProtocol文件夹
|
||||
存放框架所需定义网络协议的模版和文件夹
|
||||
### Inner文件夹
|
||||
定义服务器之间的网络协议
|
||||
### Outer文件夹
|
||||
定义客户端和服务器之间的网络协议
|
||||
### RouteType.Config
|
||||
定义自定义Route协议的配置文件
|
||||
## 交流与讨论:
|
||||
__讨论QQ群 : Fantasy服务器开发交流群 569888673 __
|
||||
Reference in New Issue
Block a user