饭太稀

This commit is contained in:
bob
2025-06-30 10:51:37 +08:00
commit 8e45469c83
753 changed files with 87652 additions and 0 deletions

View File

@@ -0,0 +1 @@
// 自定义导出配置文件,用于配置自定义导出自定义程序的路径

View File

@@ -0,0 +1 @@
{"WorksheetNames":[-8419147776733210060,-3495952183970875596,1720330851179383898,5812538452563588342],"Tables":{"-3495952183970875596":1747624043302,"-1088042625810372120":1731573652950,"1720330851179383898":1728449870789,"3730651590607244245":1731575713470,"5812538452563588342":1748394916174}}

View File

@@ -0,0 +1,3 @@
{"List":[
{"Id":1,"OuterIP":"127.0.0.1","OuterBindIP":"127.0.0.1","InnerBindIP":"127.0.0.1"}
]}

View File

@@ -0,0 +1,3 @@
{"List":[
{"Id":1,"MachineId":1,"StartupGroup":0}
]}

View File

@@ -0,0 +1,6 @@
{"List":[
{"Id":1001,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Addressable","NetworkProtocol":null,"OuterPort":0,"InnerPort":11001,"SceneType":2},
{"Id":1002,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Gate","NetworkProtocol":"KCP","OuterPort":20000,"InnerPort":11002,"SceneType":3},
{"Id":1003,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Map","NetworkProtocol":null,"OuterPort":0,"InnerPort":11003,"SceneType":4},
{"Id":1004,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Chat","NetworkProtocol":null,"OuterPort":0,"InnerPort":11004,"SceneType":8}
]}

View File

@@ -0,0 +1,3 @@
{"List":[
{"Id":1,"WorldName":"测试服","DbConnection":null,"DbName":"fantasy_main","DbType":"MongoDB"}
]}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -0,0 +1,3 @@
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
GateRoute = 1001 // Gate
ChatRoute = 1002 // Chat

View File

@@ -0,0 +1,25 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- 物理复制 Exporter 文件到项目根目录,保留目录结构 -->
<Target Name="CopyExporterFilesToProject" BeforeTargets="PrepareForBuild">
<ItemGroup>
<!-- 获取需要复制的文件 -->
<ExporterFilesToCopy Include="$(MSBuildThisFileDirectory)..\tools\output\**\*" />
</ItemGroup>
<ItemGroup>
<!-- 生成目标路径,保持原有目录结构 -->
<ExporterFilesWithDestination Include="@(ExporterFilesToCopy)">
<DestinationPath>$(MSBuildProjectDirectory)\Tools\Exporter\ConfigTable\%(RecursiveDir)%(Filename)%(Extension)</DestinationPath>
</ExporterFilesWithDestination>
</ItemGroup>
<!-- 日志输出 -->
<Message Text="Source: %(ExporterFilesWithDestination.Identity), Destination: %(ExporterFilesWithDestination.DestinationPath)" />
<!-- 复制文件 -->
<Copy
SourceFiles="@(ExporterFilesWithDestination)"
DestinationFiles="@(ExporterFilesWithDestination->'%(DestinationPath)')"
SkipUnchangedFiles="true" />
</Target>
</Project>

View File

@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Fantasy-Net.Config</PackageId>
<PackageVersion>2024.1.4</PackageVersion>
<Title>Fantasy-Net.Config</Title>
<Authors>qq362946</Authors>
<owners>qq362946</owners>
<PackageOutputPath>../../nupkg</PackageOutputPath>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<Description>
Fantasy is a high-performance network development framework based on .NET, supporting mainstream protocols. It is designed for development teams or individuals needing a quick start, scalability, and a distributed, cross-platform solution at the commercial level. Fantasy aims to provide easy-to-use tools while ensuring high system performance and scalability.</Description>
<Copyright>Copyright 2026 qq362946</Copyright>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://www.code-fantasy.com/</PackageProjectUrl>
<RepositoryUrl>https://github.com/qq362946/Fantasy</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Net, c#, Server, Game, GameServer, Fantasy , Network</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Fantasy-Net.Config</AssemblyName>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>default</LangVersion>
</PropertyGroup>
<ItemGroup>
<None Include="Config/**/*" Pack="true" PackagePath="tools\output\" />
<None Include="README.md" Pack="true" PackagePath="tools\output\" />
<None Include="icon.png" Pack="true" PackagePath="\"/>
<None Include="README.md" Pack="true" PackagePath="\"/>
<None Include="Fantasy-Net.Config.targets" Pack="true" PackagePath="buildTransitive" />
</ItemGroup>
<ItemGroup>
<None Remove="**\.DS_Store" />
</ItemGroup>
</Project>

View File

@@ -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 __

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B