mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
remove some dead code
This commit is contained in:
1 parent
a4c6f0a1e2
commit
1a2caf120b
2 files changed
+2
-20
No files matched your search
@@ -3,10 +3,8 @@ import {
|
|||||||
BlitzCrewType,
|
BlitzCrewType,
|
||||||
ChassisDefinitionsList,
|
ChassisDefinitionsList,
|
||||||
Crew,
|
Crew,
|
||||||
EngineDefinitionsList,
|
|
||||||
GunDefinitionsList,
|
GunDefinitionsList,
|
||||||
ModelDefinitions,
|
ModelDefinitions,
|
||||||
ResearchCost,
|
|
||||||
TankParameters,
|
TankParameters,
|
||||||
toUniqueId,
|
toUniqueId,
|
||||||
TurretDefinitionsList,
|
TurretDefinitionsList,
|
||||||
@@ -15,10 +13,10 @@ import {
|
|||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
VehicleDefinitions,
|
VehicleDefinitions,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { Cache } from "./0_base";
|
|
||||||
import { ServerBlitzKitAPI2 } from "./2_camouflageDefinitions";
|
|
||||||
import { parse as parsePath } from "path";
|
import { parse as parsePath } from "path";
|
||||||
import { Vector3Tuple } from "three";
|
import { Vector3Tuple } from "three";
|
||||||
|
import { Cache } from "./0_base";
|
||||||
|
import { ServerBlitzKitAPI2 } from "./2_camouflageDefinitions";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
||||||
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
||||||
@@ -55,9 +53,6 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
const gunList = await this.vfs.xml<{
|
const gunList = await this.vfs.xml<{
|
||||||
root: GunDefinitionsList;
|
root: GunDefinitionsList;
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/guns.xml`);
|
}>(`Data/XML/item_defs/vehicles/${nation}/components/guns.xml`);
|
||||||
const enginesList = await this.vfs.xml<{
|
|
||||||
root: EngineDefinitionsList;
|
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/engines.xml`);
|
|
||||||
const chassisList = await this.vfs.xml<{
|
const chassisList = await this.vfs.xml<{
|
||||||
root: ChassisDefinitionsList;
|
root: ChassisDefinitionsList;
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/chassis.xml`);
|
}>(`Data/XML/item_defs/vehicles/${nation}/components/chassis.xml`);
|
||||||
@@ -65,10 +60,6 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
for (const tankKey in tankList.root) {
|
for (const tankKey in tankList.root) {
|
||||||
if (this.botPattern.test(tankKey)) continue;
|
if (this.botPattern.test(tankKey)) continue;
|
||||||
|
|
||||||
const gunXps = new Map<number, ResearchCost>();
|
|
||||||
const turretXps = new Map<number, ResearchCost>();
|
|
||||||
const engineXps = new Map<number, ResearchCost>();
|
|
||||||
const trackXps = new Map<number, ResearchCost>();
|
|
||||||
const tank = tankList.root[tankKey];
|
const tank = tankList.root[tankKey];
|
||||||
const tankDefinition = await this.vfs.xml<{ root: VehicleDefinitions }>(
|
const tankDefinition = await this.vfs.xml<{ root: VehicleDefinitions }>(
|
||||||
`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`,
|
`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`,
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
|||||||
.dir(`Data/Gfx/Shared/tank-supply/ammunition/big`)
|
.dir(`Data/Gfx/Shared/tank-supply/ammunition/big`)
|
||||||
.then((files) => files.filter((file) => file.endsWith("_l.txt")));
|
.then((files) => files.filter((file) => file.endsWith("_l.txt")));
|
||||||
|
|
||||||
console.log(
|
|
||||||
"Shell files raw",
|
|
||||||
await vfs.dir(`Data/Gfx/Shared/tank-supply/ammunition/big`),
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log("Shell file paths", files);
|
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const id = file.match(/(.+)_l\.txt/)![1];
|
const id = file.match(/(.+)_l\.txt/)![1];
|
||||||
const sizes = (
|
const sizes = (
|
||||||
@@ -33,8 +26,6 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Shell paths", paths);
|
|
||||||
|
|
||||||
return paths;
|
return paths;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user