mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 23:44:45 +01:00
campaign UI working
This commit is contained in:
30
ProtobufViewUtil/Program.cs
Normal file
30
ProtobufViewUtil/Program.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Google.Protobuf;
|
||||
using nksrv;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace ProtobufViewUtil
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
ResGetScenarioList s = new ResGetScenarioList();
|
||||
var inn = File.ReadAllBytes(@"C:\NIKKE\NIKKE\game\ses1\output-49");
|
||||
s.MergeFrom(inn);
|
||||
Console.WriteLine(s.ToString());
|
||||
var outt = s.ToByteArray();
|
||||
|
||||
if (inn.SequenceEqual(outt))
|
||||
{
|
||||
Console.WriteLine("Check OK");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Check FAIL");
|
||||
}
|
||||
Debugger.Break();
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ProtobufViewUtil/ProtobufViewUtil.csproj
Normal file
22
ProtobufViewUtil/ProtobufViewUtil.csproj
Normal file
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Grpc.Core" Version="2.46.6" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\nksrv\nksrv.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Protobuf Include="..\nksrv/Protos/allmsgs.proto" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
1
ProtobufViewUtil/doimport.proto
Normal file
1
ProtobufViewUtil/doimport.proto
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user