mirror of
https://gitee.com/jisol/jisol-game/
synced 2026-04-05 21:12:20 +00:00
update
This commit is contained in:
25
luban_examples/Projects/MsgPack_bin/MsgPackBin.sln
Normal file
25
luban_examples/Projects/MsgPack_bin/MsgPackBin.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31912.275
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MsgPackProj", "MsgPackProj.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
luban_examples/Projects/MsgPack_bin/MsgPackInspector.exe
Normal file
BIN
luban_examples/Projects/MsgPack_bin/MsgPackInspector.exe
Normal file
Binary file not shown.
31
luban_examples/Projects/MsgPack_bin/MsgPackProj.csproj
Normal file
31
luban_examples/Projects/MsgPack_bin/MsgPackProj.csproj
Normal file
@@ -0,0 +1,31 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>ProtobufProj</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="msg_datas\**" />
|
||||
<Compile Remove="pb_schemas\**" />
|
||||
<EmbeddedResource Remove="msg_datas\**" />
|
||||
<EmbeddedResource Remove="pb_schemas\**" />
|
||||
<None Remove="msg_datas\**" />
|
||||
<None Remove="pb_schemas\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove=".cache.meta" />
|
||||
<None Remove="gen_code_json.bat" />
|
||||
<None Remove="gen_msgpack_data.bat" />
|
||||
<None Remove="gen_pb.bat" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MessagePack" Version="2.3.85" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
52
luban_examples/Projects/MsgPack_bin/Program.cs
Normal file
52
luban_examples/Projects/MsgPack_bin/Program.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
|
||||
class Program
|
||||
{
|
||||
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
// ==========
|
||||
// 使用 LsMsgPack 可视化工具检查无误
|
||||
|
||||
//TestFullTypes();
|
||||
|
||||
//TestNullable();
|
||||
}
|
||||
|
||||
//private static void TestNullable()
|
||||
//{
|
||||
// var file = "../../../pb_datas/test_tbtestnull.bytes";
|
||||
|
||||
// var bytes = File.ReadAllBytes(file);
|
||||
// Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString())));
|
||||
// var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file));
|
||||
|
||||
// Console.WriteLine(tbTestNull);
|
||||
//}
|
||||
|
||||
private static void TestFullTypes()
|
||||
{
|
||||
//var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb");
|
||||
|
||||
//Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString())));
|
||||
//var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb"));
|
||||
|
||||
//Console.WriteLine(tbItem);
|
||||
|
||||
//var file = "../../../msgpack_datas/test_tbfulltypes.bytes";
|
||||
|
||||
//var bytes = File.ReadAllBytes(file);
|
||||
|
||||
//Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString())));
|
||||
|
||||
//Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
15
luban_examples/Projects/MsgPack_bin/gen.bat
Normal file
15
luban_examples/Projects/MsgPack_bin/gen.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
set WORKSPACE=..\..
|
||||
|
||||
set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll
|
||||
set CONF_ROOT=%WORKSPACE%\DataTables
|
||||
|
||||
dotnet %LUBAN_DLL% ^
|
||||
-t all ^
|
||||
-d msgpack ^
|
||||
--conf %CONF_ROOT%\luban.conf ^
|
||||
-x outputDataDir=msg_datas ^
|
||||
-x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^
|
||||
-x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json
|
||||
|
||||
|
||||
pause
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
<EFBFBD>孓ame軒ttack_or_patrol千esc削emo hahaha厚arent_name𨸹keys<79>孓ame奚riginPosition千esc匲is_static瞻type眩ype_class_name<6D>孓ame俊argetActor千esc困2 haha姆s_static瞻type
|
||||
眩ype_class_name<EFBFBD>孓ame蚊cceptableRadius千esc困3 haha姆s_static瞻type眩ype_class_name<6D>孓ame蚓urChooseSkillId千esc困4 haha姆s_static瞻type眩ype_class_name<6D>孓ame千emo千esc削emo hahaha厚arent_name削emo_parent女eys<79>孓ame│1千esc困1 haha姆s_static瞻type眩ype_class_name<6D>孓ame│2千esc困2 haha姆s_static瞻type眩ype_class_name<6D>孓ame│3千esc困3 haha姆s_static瞻type眩ype_class_name<6D>孓ame│4千esc困4 haha姆s_static瞻type眩ype_class_name<6D>孓ame│5千esc困5 haha姆s_static瞻type眩ype_class_name<6D>孓ame│6千esc困6 haha姆s_static瞻type眩ype_class_name<6D>孓ame│7千esc困7 haha姆s_static瞻type眩ype_class_name<6D>孓ame│8千esc困8 haha姆s_static瞻type眩ype_class_name<6D>孓ame│9千esc困9 haha姆s_static瞻type 眩ype_class_namexBC<42>nameㄉ10千esc肝10 haha姆s_static瞻type
|
||||
眩ype_class_name吏BJECT<EFBFBD>name削emo_parent千esc削emo parent厚arent_name𨸹keys<79>孓ame▔1千esc听1 haha姆s_static瞻type眩ype_class_name<6D>
|
||||
@@ -0,0 +1,2 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD>x1<EFBFBD>A<EFBFBD><EFBFBD><EFBFBD><EFBFBD>x2̖<EFBFBD>x3<EFBFBD><01><>x42<34>x5
|
||||
<EFBFBD>x6<04>x7<78>
|
||||
BIN
luban_examples/Projects/MsgPack_bin/msg_datas/item_tbitem.bytes
Normal file
BIN
luban_examples/Projects/MsgPack_bin/msg_datas/item_tbitem.bytes
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
<EFBFBD>「id、textヲ/appleいid、textヲ/appleいid
|
||||
@@ -0,0 +1 @@
|
||||
<EFBFBD>「id・valueいid・valueいid
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
狽「id。x、aaa1いid。x」xx2いid。x・aaa11いid。x、xx12
|
||||
@@ -0,0 +1 @@
|
||||
窒「id。ydいid。yヘ,
|
||||
@@ -0,0 +1 @@
|
||||
曹。ao。bブ
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
狽「id「x5△y1
|
||||
いid「x5△y1
|
||||
いid「x5△y1
|
||||
いid「x5△y1
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
怩「id、nameャ豬玖ッ慕シ也<EFBDBC>≠「id、nameッ霑俶棡蝗ュ蝗ス隕≠「id、nameッ蟾・譫ッ蜉<EFBDAF>逶滉サ高「id、nameャ豬玖ッ慕シ也<EFBDBC>≠「id、nameッ霑俶棡蝗ュ蝗ス隕≠「id
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
’ƒ¢id¡x¥items’…¡x¡yáz¤abcd¡a‚¡x
|
||||
¡yd¡b“…¡x¡y¡z¤abcd¡a‚¡x¡y!¡b’ƒ¢id¡x ¥items“…¡x¡yáz¤abcd¡a‚¡x
|
||||
¡y¡b“…¡x¡y¡z¤abcd¡a‚¡x¡y!¡b’…¡x¡y¡z¤abcd¡a‚¡x¡y!¡b’
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
™†¥$type¤Item¢idÍé¤name§é<C2A7>“å…·1¤desc§é<C2A7>“å…·1£numd¥price†¥$type¤Item¢idÍê¤name§é<C2A7>“å…·2¤desc§é<C2A7>“å…·1£num¥price†¥$type©Equipment¢idÍѤname§è£…备1¤desc§è£…备1¤attr¥valued†¥$type©Equipment¢idÍÒ¤name§è£…备2¤descªè£…备2好¤attr¥value…¥$type©Decorator¢id͹¤name¦è€³çޝ¤desc¦è€³çޝ¨durationd…¥$type©Decorator¢idͺ¤name¦è€³çޝ¤desc¦è€³çޝ¨durationd†¥$type¤Item¢idÍò¤name¨é<C2A8>“å…·10¤desc¨é<C2A8>“å…·10£numd¥price
|
||||
†¥$type©Equipment¢idÍÚ¤name¨è£…备20¤desc©è£…备好¤attr¥value
|
||||
…¥$type©Decorator¢idͤname¦å¸½å<C3A5>¤desc¦å¸½å<C3A5>¨durationd
|
||||
@@ -0,0 +1,3 @@
|
||||
<EFBFBD>ξd1ξd2ξd3ζb1τum千esc卡esc1<63>id1ξd2ξd3ζb2τum千esc卡esc2<63>id1ξd2ξd3ζb3τum千esc卡esc3<63>id1ξd2ξd3ζb4τum千esc卡esc4<63>id1ξd2 ξd3ζb5τum千esc卡esc5<63>id1ξd2ξd3ζb6τum千esc卡esc6<63>id1ξd2
|
||||
ξd3ζb7τum千esc卡esc7<63>id1ξd2ξd3ζb8τum千esc卡esc8<63>id1 ξd2ξd3ζb9τum 千esc卡esc9<63>id1
|
||||
ξd2ξd3兀b10τum
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
中「id、name」xxx「x1いy2いz2「z3「y3「x2窒「z2「z3いz2「z3「x3窒「z2「z3いz2「z3「x4唐「z2「z3
|
||||
@@ -0,0 +1,3 @@
|
||||
<EFBFBD>ξd1ξd2ξd3ζb1τum千esc卡esc1<63>id1ξd2ξd3ζb2τum千esc卡esc2<63>id1ξd2ξd3ζb1τum千esc卡esc3<63>id1ξd2ξd3ζb1τum千esc卡esc4<63>id1ξd2 ξd3ζb5τum千esc卡esc5<63>id1ξd2ξd3ζb6τum千esc卡esc6<63>id1ξd2
|
||||
ξd3ζb7τum千esc卡esc7<63>id1ξd2ξd3ζb8τum千esc卡esc8<63>id1 ξd2ξd3ζb9τum 千esc卡esc9<63>id1
|
||||
ξd2ξd3兀b10τum
|
||||
@@ -0,0 +1 @@
|
||||
•‚¡x¡y‚¡x¡y‚¡x¡y‚¡x¡y‚¡x¡y
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
嘯「id・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid ・count
|
||||
いid
|
||||
・count
|
||||
@@ -0,0 +1,10 @@
|
||||
嘯「id・count
|
||||
いid・count
|
||||
いid
|
||||
・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
いid・count
|
||||
@@ -0,0 +1,2 @@
|
||||
‘‚¬unlock_equip
|
||||
«unlock_hero
|
||||
@@ -0,0 +1 @@
|
||||
狽「id、eles普「x1△x1△x1△x1△x1いid、eles普「x1△x1△x1△x1△x1いid、eles普「x1△x1△x1△x1△x1いid、eles普「x1△x1△x1△x1△x1
|
||||
@@ -0,0 +1 @@
|
||||
‘…¢id¢x1‚¢x2‚¢x3‚£aaa£bbb¢x4‚
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
’„¢id¡aƒ¢y1¢y2¢y3¡bƒ¢y1¢y2ÌÝ¢y3¡cƒ¢y1¢y2 ¢y3!„¢id¡aƒ¢y1¢y2¢y3¡bƒ¢y1¢y2ÌÝ¢y3¡cƒ¢y1¢y2 ¢y3!
|
||||
@@ -0,0 +1,2 @@
|
||||
œ<EFBFBD>¢id
|
||||
<EFBFBD>¢id‡¢id¢x1¢x2¢x3<78>¢x1¢x4ƒ¥$type¦DemoD2¢x1¢x2¢s1£asf¢s2¤/abc<62>¢id<14>¢id‡¢id¢x1¢x2¢x3<78>¢x1¢x4ƒ¥$type¦DemoD2¢x1¢x2¢s1¤asfs¢s2¤/abc‡¢id¢x1¢x2¢x3<78>¢x1¢x4ƒ¥$type¦DemoD2¢x1¢x2¢s1¦/apple¢s2¦/apple<6C>¢id<1F>¢id‡¢id¢x1¢x2¢x3<78>¢x1¢x4ƒ¥$type¦DemoD2¢x1¢x2¢s1¦/apple¢s2¦/appleƒ¢id¢s1 ¢s2 ƒ¢id¢s1¦/apple¢s2¦/apple
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
’†¢id¢x0¢ab¢x1“¢x2“¢x3’¢ab¢cd¢x4’†¢id¢x0¢cd¢x1’¢x2’¢x3’¢ab¢cd¢x4‘
|
||||
@@ -0,0 +1 @@
|
||||
‘…¢id¢x1’¢x2’¢x3’¢x4‚
|
||||
@@ -0,0 +1,3 @@
|
||||
•…¢id¢\a¢s1¥asfas¢s2§aaa
|
||||
bbb£cs1ƒ¢id¢s2£asf¢s3£aaa£cs2ƒ¢id¢s2£asf¢s3£aaa…¢id¡2¢s1¨aaa\nbbb¢s2¨aaa bbb£cs1ƒ¢id¢s2 ¢s3£bbb£cs2ƒ¢id¢s2 ¢s3£bbb…¢id¡3¢s1°å<C2B0>‡çº§åˆ°10级""¢s2¤cccc£cs1ƒ¢id¢s2¦asdfas¢s3 £cs2ƒ¢id¢s2¦asdfas¢s3 …¢id¡4¢s1¤\abc¢s2 £cs1ƒ¢id¢s2 ¢s3 £cs2ƒ¢id¢s2 ¢s3 …¢id¡5¢s1²å<C2B2>‡çº§åˆ°10级
|
||||
abc¢s2 £cs1ƒ¢id¢s2¦asdfas¢s3 £cs2ƒ¢id¢s2¦asdfas¢s3
|
||||
Reference in New Issue
Block a user