mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: rename cli
This commit is contained in:
1 parent
157fa0c1dd
commit
74a8df6842
18 files changed
+1419
-33
No files matched your search
@@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
run: |
|
run: |
|
||||||
cd src/CLI
|
cd src/BlitzKit.CLI
|
||||||
dotnet restore
|
dotnet restore
|
||||||
|
|
||||||
- name: Setup DepotDownloader
|
- name: Setup DepotDownloader
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Unpack
|
- name: Unpack
|
||||||
run: |
|
run: |
|
||||||
cd src/CLI
|
cd src/BlitzKit.CLI
|
||||||
dotnet run unpack ../../temp/depot/
|
dotnet run unpack ../../temp/depot/
|
||||||
|
|
||||||
- name: Archive VFS
|
- name: Archive VFS
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
src/CLI/Protos
|
src/BlitzKit.CLI/Protos
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
_node_modules
|
_node_modules
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ VisualStudioVersion = 17.5.2.0
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CLI", "src\CLI\CLI.csproj", "{65351C93-2DB4-8401-3BE1-C253571187A1}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlitzKit.CLI", "src\BlitzKit.CLI\BlitzKit.CLI.csproj", "{65351C93-2DB4-8401-3BE1-C253571187A1}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
+3
-3
@@ -32,13 +32,13 @@
|
|||||||
"update": "yarn upgrade --latest",
|
"update": "yarn upgrade --latest",
|
||||||
"tunnel": "cloudflared tunnel --url http://localhost:3000",
|
"tunnel": "cloudflared tunnel --url http://localhost:3000",
|
||||||
"discoverids": "scripts/discoverIds.ts",
|
"discoverids": "scripts/discoverIds.ts",
|
||||||
"build:protos": "protoc packages/core/src/protos/*.proto --csharp_out=src/CLI/Protos && bun packages/scripts/src/protos.ts",
|
"build:protos": "protoc packages/core/src/protos/*.proto --csharp_out=src/BlitzKit.CLI/Protos && bun packages/scripts/src/protos.ts",
|
||||||
"preview:website": "cd packages/website && bun run preview",
|
"preview:website": "cd packages/website && bun run preview",
|
||||||
"build:reviews": "cd packages/scripts && bun build:reviews",
|
"build:reviews": "cd packages/scripts && bun build:reviews",
|
||||||
"build:ids": "cd packages/scripts && bun build:ids",
|
"build:ids": "cd packages/scripts && bun build:ids",
|
||||||
"prunestrings": "cd packages/scripts && bun prunestrings",
|
"prunestrings": "cd packages/scripts && bun prunestrings",
|
||||||
"dev:cli:unpack": "cd src/CLI && dotnet run unpack \"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest\" --no-overwrite",
|
"dev:cli:unpack": "cd src/BlitzKit.CLI && dotnet run unpack \"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest\" --no-overwrite",
|
||||||
"dev:cli:mangle": "cd src/CLI && dotnet run mangle"
|
"dev:cli:mangle": "cd src/BlitzKit.CLI && dotnet run mangle"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export interface I18nString_LocalesEntry {
|
|||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createBaseI18nString(): I18nString {
|
function createBaseI18nString(): I18nString {
|
||||||
return { locales: {} };
|
return { locales: {} };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,5 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
export * from './average_definitions.ts';
|
|
||||||
export * from './camouflage_definitions.ts';
|
|
||||||
export * from './consumable_definitions.ts';
|
|
||||||
export * from './equipment_definitions.ts';
|
|
||||||
export * from './game_definitions.ts';
|
|
||||||
export * from './i18n.ts';
|
export * from './i18n.ts';
|
||||||
export * from './map_definitions.ts';
|
|
||||||
export * from './model_definitions.ts';
|
|
||||||
export * from './provision_definitions.ts';
|
|
||||||
export * from './rating_leaderboard.ts';
|
|
||||||
export * from './reviews.ts';
|
export * from './reviews.ts';
|
||||||
export * from './skill_definitions.ts';
|
export * from './tank.ts';
|
||||||
export * from './tank_definitions.ts';
|
export * from './tanks.ts';
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,94 @@
|
|||||||
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-ts_proto v2.2.2
|
||||||
|
// protoc v5.28.2
|
||||||
|
// source: packages/core/src/protos/tanks.proto
|
||||||
|
|
||||||
|
/* eslint-disable */
|
||||||
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||||
|
|
||||||
|
export const protobufPackage = "blitzkit";
|
||||||
|
|
||||||
|
export interface Tanks {
|
||||||
|
tanks: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
function createBaseTanks(): Tanks {
|
||||||
|
return { tanks: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Tanks: MessageFns<Tanks> = {
|
||||||
|
encode(message: Tanks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
|
for (const v of message.tanks) {
|
||||||
|
writer.uint32(10).string(v!);
|
||||||
|
}
|
||||||
|
return writer;
|
||||||
|
},
|
||||||
|
|
||||||
|
decode(input: BinaryReader | Uint8Array, length?: number): Tanks {
|
||||||
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||||
|
let end = length === undefined ? reader.len : reader.pos + length;
|
||||||
|
const message = createBaseTanks();
|
||||||
|
while (reader.pos < end) {
|
||||||
|
const tag = reader.uint32();
|
||||||
|
switch (tag >>> 3) {
|
||||||
|
case 1: {
|
||||||
|
if (tag !== 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
message.tanks.push(reader.string());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((tag & 7) === 4 || tag === 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
reader.skip(tag & 7);
|
||||||
|
}
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
|
||||||
|
fromJSON(object: any): Tanks {
|
||||||
|
return { tanks: globalThis.Array.isArray(object?.tanks) ? object.tanks.map((e: any) => globalThis.String(e)) : [] };
|
||||||
|
},
|
||||||
|
|
||||||
|
toJSON(message: Tanks): unknown {
|
||||||
|
const obj: any = {};
|
||||||
|
if (message.tanks?.length) {
|
||||||
|
obj.tanks = message.tanks;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
|
||||||
|
create<I extends Exact<DeepPartial<Tanks>, I>>(base?: I): Tanks {
|
||||||
|
return Tanks.fromPartial(base ?? ({} as any));
|
||||||
|
},
|
||||||
|
fromPartial<I extends Exact<DeepPartial<Tanks>, I>>(object: I): Tanks {
|
||||||
|
const message = createBaseTanks();
|
||||||
|
message.tanks = object.tanks?.map((e) => e) || [];
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
||||||
|
|
||||||
|
export type DeepPartial<T> = T extends Builtin ? T
|
||||||
|
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
||||||
|
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
||||||
|
: T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial<T["value"]> }
|
||||||
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||||
|
: Partial<T>;
|
||||||
|
|
||||||
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
||||||
|
export type Exact<P, I extends P> = P extends Builtin ? P
|
||||||
|
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
||||||
|
|
||||||
|
export interface MessageFns<T> {
|
||||||
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||||
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||||
|
fromJSON(object: any): T;
|
||||||
|
toJSON(message: T): unknown;
|
||||||
|
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
||||||
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
||||||
|
}
|
||||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
|||||||
using CLI.Models;
|
using BlitzKit.CLI.Models;
|
||||||
|
|
||||||
namespace CLI.Functions
|
namespace BlitzKit.CLI.Functions
|
||||||
{
|
{
|
||||||
public static class Mangler
|
public static class Mangler
|
||||||
{
|
{
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using CLI.Models;
|
using BlitzKit.CLI.Models;
|
||||||
using CLI.Utils;
|
using BlitzKit.CLI.Utils;
|
||||||
using CUE4Parse.FileProvider.Objects;
|
using CUE4Parse.FileProvider.Objects;
|
||||||
using CUE4Parse.UE4.Pak;
|
using CUE4Parse.UE4.Pak;
|
||||||
using CUE4Parse.UE4.Readers;
|
using CUE4Parse.UE4.Readers;
|
||||||
using DotNet.Globbing;
|
using DotNet.Globbing;
|
||||||
|
|
||||||
namespace CLI.Functions
|
namespace BlitzKit.CLI.Functions
|
||||||
{
|
{
|
||||||
public static class Unpacker
|
public static class Unpacker
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using CUE4Parse.FileProvider;
|
using CUE4Parse.FileProvider;
|
||||||
using CUE4Parse.FileProvider.Objects;
|
using CUE4Parse.FileProvider.Objects;
|
||||||
|
|
||||||
namespace CLI.Models
|
namespace BlitzKit.CLI.Models
|
||||||
{
|
{
|
||||||
public class BlitzProvider : DefaultFileProvider
|
public class BlitzProvider : DefaultFileProvider
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace CLI.Models
|
namespace BlitzKit.CLI.Models
|
||||||
{
|
{
|
||||||
public partial class DlcManifest
|
public partial class DlcManifest
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace CLI.Models
|
namespace BlitzKit.CLI.Models
|
||||||
{
|
{
|
||||||
public class LocalManifestPakFile
|
public class LocalManifestPakFile
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using CLI.Functions;
|
using BlitzKit.CLI.Functions;
|
||||||
using CLI.Utils;
|
using BlitzKit.CLI.Utils;
|
||||||
|
|
||||||
namespace CLI
|
namespace BlitzKit.CLI
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@ using System.IO.Compression;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using CUE4Parse.Compression;
|
using CUE4Parse.Compression;
|
||||||
|
|
||||||
namespace CLI.Utils
|
namespace BlitzKit.CLI.Utils
|
||||||
{
|
{
|
||||||
public static class AgnosticHelpers
|
public static class AgnosticHelpers
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace CLI.Utils
|
namespace BlitzKit.CLI.Utils
|
||||||
{
|
{
|
||||||
public class ExplicitlySizedStream(Stream stream, long length) : Stream
|
public class ExplicitlySizedStream(Stream stream, long length) : Stream
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace CLI.Utils
|
namespace BlitzKit.CLI.Utils
|
||||||
{
|
{
|
||||||
public class IniParser
|
public class IniParser
|
||||||
{
|
{
|
||||||
Reference in new issue
Block a user