增加一些定义
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{"List":[
|
||||
{"Id":1,"WorldName":"测试服","DbConnection":null,"DbName":"fantasy_main","DbType":"MongoDB"}
|
||||
{"Id":1,"WorldName":"测试服","DbConnection":"mongodb://127.0.0.1","DbName":"fantasy_main","DbType":"MongoDB"}
|
||||
]}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Nullable>disable</Nullable>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<LangVersion>default</LangVersion>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
|
||||
7
Entity/Model/DB/Members/ActivityInfo.cs
Normal file
7
Entity/Model/DB/Members/ActivityInfo.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Activity : Entity
|
||||
{
|
||||
}
|
||||
31
Entity/Model/DB/Members/BasicInfo.cs
Normal file
31
Entity/Model/DB/Members/BasicInfo.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class BasicInfo : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
public string NickName;
|
||||
|
||||
/// <summary>
|
||||
/// 头像
|
||||
/// </summary>
|
||||
public string Head;
|
||||
|
||||
/// <summary>
|
||||
/// 国家
|
||||
/// </summary>
|
||||
public string Country;
|
||||
|
||||
/// <summary>
|
||||
/// 等级
|
||||
/// </summary>
|
||||
public int Level;
|
||||
|
||||
/// <summary>
|
||||
/// 当前经验
|
||||
/// </summary>
|
||||
public int Exp;
|
||||
}
|
||||
16
Entity/Model/DB/Members/Currency.cs
Normal file
16
Entity/Model/DB/Members/Currency.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Currency : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
public int ConfigId;
|
||||
|
||||
/// <summary>
|
||||
/// 拥有的数量
|
||||
/// </summary>
|
||||
public int Count;
|
||||
}
|
||||
5
Entity/Model/DB/Members/DayFlags.cs
Normal file
5
Entity/Model/DB/Members/DayFlags.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace Fantasy;
|
||||
|
||||
public class DayFlags
|
||||
{
|
||||
}
|
||||
7
Entity/Model/DB/Members/Fish.cs
Normal file
7
Entity/Model/DB/Members/Fish.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Fish : Entity
|
||||
{
|
||||
}
|
||||
21
Entity/Model/DB/Members/GamingInfo.cs
Normal file
21
Entity/Model/DB/Members/GamingInfo.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class GamingInfo : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 地图
|
||||
/// </summary>
|
||||
public int Map;
|
||||
|
||||
/// <summary>
|
||||
/// 位置
|
||||
/// </summary>
|
||||
public int Pos;
|
||||
|
||||
/// <summary>
|
||||
/// 进入时间
|
||||
/// </summary>
|
||||
public int Time;
|
||||
}
|
||||
26
Entity/Model/DB/Members/Guide.cs
Normal file
26
Entity/Model/DB/Members/Guide.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Guide : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int Sort;
|
||||
|
||||
/// <summary>
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
public int ConfigId;
|
||||
|
||||
/// <summary>
|
||||
/// 步骤
|
||||
/// </summary>
|
||||
public int Step;
|
||||
|
||||
/// <summary>
|
||||
/// 触发时间
|
||||
/// </summary>
|
||||
public long GetTime;
|
||||
}
|
||||
21
Entity/Model/DB/Members/Item.cs
Normal file
21
Entity/Model/DB/Members/Item.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Item : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
public int ConfigId;
|
||||
|
||||
/// <summary>
|
||||
/// 拥有的数量
|
||||
/// </summary>
|
||||
public int Count;
|
||||
|
||||
/// <summary>
|
||||
/// 耐久度
|
||||
/// </summary>
|
||||
public int Durability;
|
||||
}
|
||||
7
Entity/Model/DB/Members/MapMatter.cs
Normal file
7
Entity/Model/DB/Members/MapMatter.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class MapMatter : Entity
|
||||
{
|
||||
}
|
||||
7
Entity/Model/DB/Members/MissionInfo.cs
Normal file
7
Entity/Model/DB/Members/MissionInfo.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Mission : Entity
|
||||
{
|
||||
}
|
||||
7
Entity/Model/DB/Members/Skill.cs
Normal file
7
Entity/Model/DB/Members/Skill.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Skill : Entity
|
||||
{
|
||||
}
|
||||
28
Entity/Model/DB/Members/UserStatisticsInfo.cs
Normal file
28
Entity/Model/DB/Members/UserStatisticsInfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class UserStatisticsInfo : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录次数
|
||||
/// </summary>
|
||||
public uint LoginCount;
|
||||
|
||||
/// <summary>
|
||||
/// 最后登录时间
|
||||
/// </summary>
|
||||
public long LoginTime;
|
||||
|
||||
/// <summary>
|
||||
/// 在线时间
|
||||
/// </summary>
|
||||
public long OnlineTime;
|
||||
|
||||
/// <summary>
|
||||
/// 账号创建时间
|
||||
/// </summary>
|
||||
public long CreateTime;
|
||||
|
||||
public int FishCount;
|
||||
}
|
||||
@@ -5,12 +5,62 @@ namespace Fantasy;
|
||||
public class UserInfo : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// 基础信息
|
||||
/// </summary>
|
||||
public string NickName { get; set; }
|
||||
|
||||
public BasicInfo BasicInfo;
|
||||
|
||||
/// <summary>
|
||||
/// 余额
|
||||
/// 统计信息
|
||||
/// </summary>
|
||||
public long Money { get; set; }
|
||||
public UserStatisticsInfo Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// 游戏信息
|
||||
/// </summary>
|
||||
public GamingInfo GamingInfo;
|
||||
|
||||
/// <summary>
|
||||
/// 货币信息
|
||||
/// </summary>
|
||||
public List<Currency> Currency;
|
||||
|
||||
/// <summary>
|
||||
/// 拥有的物品
|
||||
/// </summary>
|
||||
public List<Item> Items;
|
||||
|
||||
/// <summary>
|
||||
/// 鱼护
|
||||
/// </summary>
|
||||
public List<Fish> Fishes;
|
||||
|
||||
/// <summary>
|
||||
/// 参与的活动
|
||||
/// </summary>
|
||||
public List<Activity> Activity;
|
||||
|
||||
/// <summary>
|
||||
/// 任务列表
|
||||
/// </summary>
|
||||
public List<Mission> Missions;
|
||||
|
||||
/// <summary>
|
||||
/// 账号标识
|
||||
/// </summary>
|
||||
public DayFlags DayFlags;
|
||||
|
||||
/// <summary>
|
||||
/// 拥有的技能
|
||||
/// </summary>
|
||||
public List<Skill> Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// 引导情况
|
||||
/// </summary>
|
||||
public List<Guide> Guides;
|
||||
|
||||
/// <summary>
|
||||
/// 地图情况
|
||||
/// </summary>
|
||||
public List<MapMatter> MapMatters;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy.Model;
|
||||
|
||||
public sealed class User : Entity
|
||||
{
|
||||
public string NickName { get; set; }
|
||||
public string Head { get; set; }
|
||||
public string Country { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
public static class RoamingType
|
||||
{
|
||||
}
|
||||
}
|
||||
1
Examples/Config/NetworkProtocol/RoamingType.Config
Normal file
1
Examples/Config/NetworkProtocol/RoamingType.Config
Normal file
@@ -0,0 +1 @@
|
||||
// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
1
Examples/Config/NetworkProtocol/RouteType.Config
Normal file
1
Examples/Config/NetworkProtocol/RouteType.Config
Normal file
@@ -0,0 +1 @@
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
@@ -0,0 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
public static class RoamingType
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Outer\NormalMessage\" />
|
||||
<Folder Include="Outer\Demo\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
14
Hotfix/Outer/Gate/C2G_LoginMessageHandler.cs
Normal file
14
Hotfix/Outer/Gate/C2G_LoginMessageHandler.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// using Fantasy.Async;
|
||||
// using Fantasy.Network;
|
||||
// using Fantasy.Network.Interface;
|
||||
//
|
||||
// namespace Fantasy.Gate;
|
||||
//
|
||||
// public class C2G_LoginMessageHandler : Message<C2G_TestMessage>
|
||||
// {
|
||||
// protected override async FTask Run(Session session, C2G_TestMessage message)
|
||||
// {
|
||||
// Log.Debug($"Receive C2G_TestMessage Tag={message.Tag}");
|
||||
// await FTask.CompletedTask;
|
||||
// }
|
||||
// }
|
||||
@@ -36,6 +36,7 @@
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMemoryPool_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F075adf13af424892b7e940211f3b0a6a24c00_003F44_003Fbf566ef7_003FMemoryPool_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMemory_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F8bc9cdb23bc146bcaaae0bb9e45e5d46d9dc00_003F47_003F6e33d1b5_003FMemory_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMiMalloc_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F60d0203982134324aae0d2ca760a88a54400_003F2e_003F39679261_003FMiMalloc_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMongoDataBase_002Ecs_002Fl_003AC_0021_003FUsers_003Fbob_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fef6258830955486e8fb0f971e12b16b183200_003F6e_003F2a3d5471_003FMongoDataBase_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMvcServiceCollectionExtensions_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F7bc6d1e2e4b14ffd826a34ca3c8eac755a00_003F20_003F93fe3d76_003FMvcServiceCollectionExtensions_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AOuterReadOnlyMemoryPacketParser_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fef6258830955486e8fb0f971e12b16b183200_003F00_003F8c8caea8_003FOuterReadOnlyMemoryPacketParser_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APath_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F77fc0eb92b774686bbae91cb92331703d83600_003Ff3_003F87069e78_003FPath_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
|
||||
@@ -18,4 +18,6 @@ if "%choice%"=="1" (
|
||||
dotnet Fantasy.Tools.NetworkProtocol.dll --p 3
|
||||
) else (
|
||||
echo Invalid option
|
||||
)
|
||||
)
|
||||
|
||||
PAUSE
|
||||
BIN
Tools/NetworkProtocol/CommandLine.dll
Normal file
BIN
Tools/NetworkProtocol/CommandLine.dll
Normal file
Binary file not shown.
29
Tools/NetworkProtocol/ExporterSettings.json
Normal file
29
Tools/NetworkProtocol/ExporterSettings.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"Export": {
|
||||
"NetworkProtocolDirectory": {
|
||||
"Value": "../../Config/NetworkProtocol/",
|
||||
"Comment": "ProtoBuf文件所在的文件夹位置"
|
||||
},
|
||||
"NetworkProtocolServerDirectory": {
|
||||
"Value": "../../Entity/Generate/NetworkProtocol/",
|
||||
"Comment": "ProtoBuf生成到服务端的文件夹位置"
|
||||
},
|
||||
"NetworkProtocolClientDirectory": {
|
||||
"Value": "../../OutputClient/Generate/NetworkProtocol/",
|
||||
"Comment": "ProtoBuf生成到客户端的文件夹位置"
|
||||
},
|
||||
"Serializes": {
|
||||
"Value": [
|
||||
// {
|
||||
// "KeyIndex": 0,
|
||||
// "NameSpace" : "MemoryPack",
|
||||
// "SerializeName": "MemoryPack",
|
||||
// "Attribute": "\t[MemoryPackable]",
|
||||
// "Ignore": "\t\t[MemoryPackIgnore]",
|
||||
// "Member": "MemoryPackOrder"
|
||||
// }
|
||||
],
|
||||
"Comment": "自定义序列化器"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol
Normal file
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol
Normal file
Binary file not shown.
264
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.deps.json
Normal file
264
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.deps.json
Normal file
@@ -0,0 +1,264 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"Fantasy.Tools.NetworkProtocol/1.0.0": {
|
||||
"dependencies": {
|
||||
"CommandLineParser": "2.9.1",
|
||||
"Microsoft.Extensions.Configuration.Json": "9.0.6",
|
||||
"Newtonsoft.Json": "13.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"Fantasy.Tools.NetworkProtocol.dll": {}
|
||||
}
|
||||
},
|
||||
"CommandLineParser/2.9.1": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/CommandLine.dll": {
|
||||
"assemblyVersion": "2.9.1.0",
|
||||
"fileVersion": "2.9.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "9.0.6",
|
||||
"Microsoft.Extensions.Primitives": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.FileExtensions/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration": "9.0.6",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "9.0.6",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "9.0.6",
|
||||
"Microsoft.Extensions.FileProviders.Physical": "9.0.6",
|
||||
"Microsoft.Extensions.Primitives": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Json/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration": "9.0.6",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "9.0.6",
|
||||
"Microsoft.Extensions.Configuration.FileExtensions": "9.0.6",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "9.0.6",
|
||||
"System.Text.Json": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.Json.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Abstractions/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Physical/9.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "9.0.6",
|
||||
"Microsoft.Extensions.FileSystemGlobbing": "9.0.6",
|
||||
"Microsoft.Extensions.Primitives": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileProviders.Physical.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileSystemGlobbing/9.0.6": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/9.0.6": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Primitives.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Newtonsoft.Json/13.0.3": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Newtonsoft.Json.dll": {
|
||||
"assemblyVersion": "13.0.0.0",
|
||||
"fileVersion": "13.0.3.27908"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IO.Pipelines/9.0.6": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IO.Pipelines.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encodings.Web/9.0.6": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Text.Encodings.Web.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll": {
|
||||
"rid": "browser",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Json/9.0.6": {
|
||||
"dependencies": {
|
||||
"System.IO.Pipelines": "9.0.6",
|
||||
"System.Text.Encodings.Web": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Text.Json.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Fantasy.Tools.NetworkProtocol/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"CommandLineParser/2.9.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-OE0sl1/sQ37bjVsPKKtwQlWDgqaxWgtme3xZz7JssWUzg5JpMIyHgCTY9MVMxOg48fJ1AgGT3tgdH5m/kQ5xhA==",
|
||||
"path": "commandlineparser/2.9.1",
|
||||
"hashPath": "commandlineparser.2.9.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-VWB5jdkxHsRiuoniTqwOL32R4OWyp5If/bAucLjRJczRVNcwb8iCXKLjn3Inv8fv+jHMVMnvQLg7xhSys+y5PA==",
|
||||
"path": "microsoft.extensions.configuration/9.0.6",
|
||||
"hashPath": "microsoft.extensions.configuration.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-3GgMIi2jP8g1fBW93Z9b9Unamc0SIsgyhiCmC91gq4loTixK9vQMuxxUsfJ1kRGwn+/FqLKwOHqmn0oYWn3Fvw==",
|
||||
"path": "microsoft.extensions.configuration.abstractions/9.0.6",
|
||||
"hashPath": "microsoft.extensions.configuration.abstractions.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.FileExtensions/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pCEueasI5JhJ24KYzMFxtG40zyLnWpcQYawpARh9FNq9XbWozuWgexmdkPa8p8YoVNlpi3ecKfcjfoRMkKAufw==",
|
||||
"path": "microsoft.extensions.configuration.fileextensions/9.0.6",
|
||||
"hashPath": "microsoft.extensions.configuration.fileextensions.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Json/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-N0dgOYQ9tDzJouL9Tyx2dgMCcHV2pBaY8yVtorbDqYYwiDRS2zd1TbhTA2FMHqXF3SMjBoO+gONZcDoA79gdSA==",
|
||||
"path": "microsoft.extensions.configuration.json/9.0.6",
|
||||
"hashPath": "microsoft.extensions.configuration.json.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Abstractions/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-q9FPkSGVA9ipI255p3PBAvWNXas5Tzjyp/DwYSwT+46mIFw9fWZahsF6vHpoxLt5/vtANotH2sAm7HunuFIx9g==",
|
||||
"path": "microsoft.extensions.fileproviders.abstractions/9.0.6",
|
||||
"hashPath": "microsoft.extensions.fileproviders.abstractions.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Physical/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-l+dFA0NRl90vSIiJNy5d7V0kpTEOWHTqbgoWYzlTwF5uiM5sWJ953haaELKE05jkyJdnemVTnqjrlgo4wo7oyg==",
|
||||
"path": "microsoft.extensions.fileproviders.physical/9.0.6",
|
||||
"hashPath": "microsoft.extensions.fileproviders.physical.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileSystemGlobbing/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-1HJCAbwukNEoYbHgHbKHmenU0V/0huw8+i7Qtf5rLUG1E+3kEwRJQxpwD3wbTEagIgPSQisNgJTvmUX9yYVc6g==",
|
||||
"path": "microsoft.extensions.filesystemglobbing/9.0.6",
|
||||
"hashPath": "microsoft.extensions.filesystemglobbing.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-BHniU24QV67qp1pJknqYSofAPYGmijGI8D+ci9yfw33iuFdyOeB9lWTg78ThyYLyQwZw3s0vZ36VMb0MqbUuLw==",
|
||||
"path": "microsoft.extensions.primitives/9.0.6",
|
||||
"hashPath": "microsoft.extensions.primitives.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"Newtonsoft.Json/13.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
|
||||
"path": "newtonsoft.json/13.0.3",
|
||||
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
|
||||
},
|
||||
"System.IO.Pipelines/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-0nlr0reXrRmkZNKifKqh2DgGhQgfkT7Qa3gQxIn/JI7/y3WDiTz67M+Sq3vFhUqcG8O5zVrpqHvIHeGPGUBsEw==",
|
||||
"path": "system.io.pipelines/9.0.6",
|
||||
"hashPath": "system.io.pipelines.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encodings.Web/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-uWRgViw2yJAUyGxrzDLCc6fkzE2dZIoXxs8V6YjCujKsJuP0pnpYSlbm2/7tKd0SjBnMtwfDQhLenk3bXonVOA==",
|
||||
"path": "system.text.encodings.web/9.0.6",
|
||||
"hashPath": "system.text.encodings.web.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-h+ZtYTyTnTh5Ju6mHCKb3FPGx4ylJZgm9W7Y2psUnkhQRPMOIxX+TCN0ZgaR/+Yea+93XHWAaMzYTar1/EHIPg==",
|
||||
"path": "system.text.json/9.0.6",
|
||||
"hashPath": "system.text.json.9.0.6.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.dll
Normal file
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.dll
Normal file
Binary file not shown.
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.pdb
Normal file
BIN
Tools/NetworkProtocol/Fantasy.Tools.NetworkProtocol.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Tools/NetworkProtocol/Microsoft.Extensions.Configuration.dll
Normal file
BIN
Tools/NetworkProtocol/Microsoft.Extensions.Configuration.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Tools/NetworkProtocol/Microsoft.Extensions.Primitives.dll
Normal file
BIN
Tools/NetworkProtocol/Microsoft.Extensions.Primitives.dll
Normal file
Binary file not shown.
BIN
Tools/NetworkProtocol/Newtonsoft.Json.dll
Normal file
BIN
Tools/NetworkProtocol/Newtonsoft.Json.dll
Normal file
Binary file not shown.
23
Tools/NetworkProtocol/Run.bat
Normal file
23
Tools/NetworkProtocol/Run.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
|
||||
echo Please select an option:
|
||||
echo 1. Client
|
||||
echo 2. Server
|
||||
echo 3. All
|
||||
|
||||
set /p choice=Please select an option:
|
||||
|
||||
if "%choice%"=="1" (
|
||||
echo Client
|
||||
dotnet Fantasy.Tools.NetworkProtocol.dll --p 1
|
||||
) else if "%choice%"=="2" (
|
||||
echo Server
|
||||
dotnet Fantasy.Tools.NetworkProtocol.dll --p 2
|
||||
) else if "%choice%"=="3" (
|
||||
echo All
|
||||
dotnet Fantasy.Tools.NetworkProtocol.dll --p 3
|
||||
) else (
|
||||
echo Invalid option
|
||||
)
|
||||
|
||||
PAUSE
|
||||
24
Tools/NetworkProtocol/Run.sh
Normal file
24
Tools/NetworkProtocol/Run.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "1. Client"
|
||||
echo "2. Server"
|
||||
echo "3. All"
|
||||
|
||||
read -n 1 -p "Please select an option:" choice
|
||||
echo ""
|
||||
echo ""
|
||||
script_dir=$(cd $(dirname $0) && pwd)
|
||||
case $choice in
|
||||
1)
|
||||
dotnet $script_dir/Fantasy.Tools.NetworkProtocol.dll --p 1 --f $script_dir
|
||||
;;
|
||||
2)
|
||||
dotnet $script_dir/Fantasy.Tools.NetworkProtocol.dll --p 2 --f $script_dir
|
||||
;;
|
||||
3)
|
||||
dotnet $script_dir/Fantasy.Tools.NetworkProtocol.dll --p 3 --f $script_dir
|
||||
;;
|
||||
*)
|
||||
echo "Invalid option"
|
||||
;;
|
||||
esac
|
||||
BIN
Tools/NetworkProtocol/System.IO.Pipelines.dll
Normal file
BIN
Tools/NetworkProtocol/System.IO.Pipelines.dll
Normal file
Binary file not shown.
BIN
Tools/NetworkProtocol/System.Text.Encodings.Web.dll
Normal file
BIN
Tools/NetworkProtocol/System.Text.Encodings.Web.dll
Normal file
Binary file not shown.
BIN
Tools/NetworkProtocol/System.Text.Json.dll
Normal file
BIN
Tools/NetworkProtocol/System.Text.Json.dll
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user