mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-31 14:39:51 +01:00
Compare commits
3
Commits
f6008bd288
...
0ebf9f6c3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ebf9f6c3d | ||
|
|
6fec467ec8 | ||
|
|
8b0f1cdfed |
No files matched your search
+1
-1
Submodule packages/cue4parse updated: f503d635a1...b8c9dab500.
@@ -9,7 +9,6 @@
|
|||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="SkiaSharp.NativeAssets.Win32" Version="2.88.9" />
|
|
||||||
<ProjectReference Include="../cue4parse/CUE4Parse/CUE4Parse.csproj" />
|
<ProjectReference Include="../cue4parse/CUE4Parse/CUE4Parse.csproj" />
|
||||||
<ProjectReference Include="../cue4parse/CUE4Parse-Conversion/CUE4Parse-Conversion.csproj" />
|
<ProjectReference Include="../cue4parse/CUE4Parse-Conversion/CUE4Parse-Conversion.csproj" />
|
||||||
<PackageReference Include="Microsoft.JavaScript.NodeApi" Version="0.9.19" />
|
<PackageReference Include="Microsoft.JavaScript.NodeApi" Version="0.9.19" />
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { GameInterface } from "@blitzkit/game";
|
||||||
|
|
||||||
|
export const game = new GameInterface(
|
||||||
|
"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest",
|
||||||
|
);
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import type { APIContext } from "astro";
|
||||||
|
import { api } from "../../../core/api/dynamic";
|
||||||
|
import { game } from "../../../core/game/game";
|
||||||
|
|
||||||
|
export { getStaticPaths } from "./[id].pb";
|
||||||
|
|
||||||
|
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||||
|
const tank = await api.tank(params.id);
|
||||||
|
const image = game.tankBigIcon(params.id, tank.tank!.visual_data);
|
||||||
|
return new Response(new Uint8Array(image));
|
||||||
|
}
|
||||||
@@ -9,5 +9,6 @@ message Tank {
|
|||||||
blitz_static_tank_component.TankCatalogComponent tank = 1;
|
blitz_static_tank_component.TankCatalogComponent tank = 1;
|
||||||
blitz_static_compensation_component.CompensationComponent compensation = 2;
|
blitz_static_compensation_component.CompensationComponent compensation = 2;
|
||||||
|
|
||||||
string slug = 3;
|
string id = 3;
|
||||||
|
string slug = 4;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user