mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: protos
This commit is contained in:
1 parent
0139dd45c9
commit
157fa0c1dd
7 files changed
+20
-3
No files matched your search
@@ -1,3 +1,5 @@
|
||||
src/CLI/Protos
|
||||
|
||||
node_modules
|
||||
_node_modules
|
||||
package-lock.json
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
"update": "yarn upgrade --latest",
|
||||
"tunnel": "cloudflared tunnel --url http://localhost:3000",
|
||||
"discoverids": "scripts/discoverIds.ts",
|
||||
"build:protos": "bun packages/scripts/src/protos.ts",
|
||||
"build:protos": "protoc packages/core/src/protos/*.proto --csharp_out=src/CLI/Protos && bun packages/scripts/src/protos.ts",
|
||||
"preview:website": "cd packages/website && bun run preview",
|
||||
"build:reviews": "cd packages/scripts && bun build:reviews",
|
||||
"build:ids": "cd packages/scripts && bun build:ids",
|
||||
|
||||
@@ -11,7 +11,7 @@ message Tank {
|
||||
required ModuleHealth engine_health = 6;
|
||||
required ModuleHealth fuel_tank_health = 7;
|
||||
|
||||
map<string, CrewHealth> crew_healths = 8;
|
||||
map<string, float> crew_healths = 8;
|
||||
|
||||
required float max_health = 9;
|
||||
required float concealment_stationary = 10;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
syntax = "proto2";
|
||||
|
||||
package blitzkit;
|
||||
|
||||
message Tanks {
|
||||
repeated string tanks = 1;
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DotNet.Glob" Version="3.1.3" />
|
||||
<PackageReference Include="Google.Protobuf" Version="3.29.3" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -15,7 +15,10 @@ namespace CLI.Functions
|
||||
|
||||
foreach (var tank in nation.Value.Directories)
|
||||
{
|
||||
Console.WriteLine(tank.Key);
|
||||
if (!tank.Value.HasFile($"DA_{tank.Key}_Attributes.uasset"))
|
||||
{
|
||||
Console.WriteLine($"{nation.Key}/{tank.Key}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,10 @@ namespace CLI.Models
|
||||
|
||||
public void AddFile(string name, GameFile file) => Files.TryAdd(name, file);
|
||||
|
||||
public bool HasFile(string name) => Files.ContainsKey(name);
|
||||
|
||||
public GameFile GetFile(string name) => Files[name];
|
||||
|
||||
public bool HasDirectory(string name) => Directories.ContainsKey(name);
|
||||
|
||||
public VfsDirectory GetDirectory(string name)
|
||||
|
||||
Reference in new issue
Block a user