mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
proto imports
This commit is contained in:
1 parent
127c55ec93
commit
593ae760e7
42 files changed
+102
-100
No files matched your search
@@ -1,8 +1,5 @@
|
||||
import {
|
||||
normalizeAngleRad,
|
||||
type PitchLimits,
|
||||
type YawLimits,
|
||||
} from "@blitzkit/core";
|
||||
import { normalizeAngleRad } from "@blitzkit/core";
|
||||
import type { PitchLimits, YawLimits } from "@blitzkit/protos";
|
||||
import { clamp } from "lodash-es";
|
||||
import { degToRad } from "three/src/math/MathUtils.js";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Vector3 as BlitzkitVector3 } from '@blitzkit/core';
|
||||
import { Vector3 as THREEVector3 } from 'three';
|
||||
import { rotateDavaVector } from './rotateDavaVector';
|
||||
import type { Vector3 as BlitzkitVector3 } from "@blitzkit/protos";
|
||||
import { Vector3 as THREEVector3 } from "three";
|
||||
import { rotateDavaVector } from "./rotateDavaVector";
|
||||
|
||||
export function correctZYTuple(tuple: BlitzkitVector3) {
|
||||
return rotateDavaVector(new THREEVector3(tuple.x, tuple.y, -tuple.z));
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { GunDefinition } from '@blitzkit/core';
|
||||
import type { GunDefinition } from "@blitzkit/protos";
|
||||
|
||||
export function resolveReload(gun: GunDefinition) {
|
||||
if (gun.gun_type!.$case === 'regular') {
|
||||
if (gun.gun_type!.$case === "regular") {
|
||||
return gun.gun_type!.value.reload;
|
||||
} else if (gun.gun_type!.$case === 'auto_loader') {
|
||||
} else if (gun.gun_type!.$case === "auto_loader") {
|
||||
return (
|
||||
gun.gun_type!.value.clip_reload +
|
||||
(gun.gun_type!.value.shell_count - 1) * gun.gun_type!.value.intra_clip
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Armor } from '@blitzkit/core';
|
||||
import type { Armor } from "@blitzkit/protos";
|
||||
|
||||
export function resolveArmor(armor: Armor, index: number) {
|
||||
const spaced = armor.spaced?.includes(index) ?? false;
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
import {
|
||||
CrewType,
|
||||
degressiveStat,
|
||||
isExplosive,
|
||||
normalizeBoundingBox,
|
||||
progressiveStat,
|
||||
resolveDpm,
|
||||
resolvePenetrationCoefficient,
|
||||
ShellType,
|
||||
sum,
|
||||
TankClass,
|
||||
unionBoundingBox,
|
||||
} from "@blitzkit/core";
|
||||
import { coefficient } from "@blitzkit/core/src/blitzkit/coefficient";
|
||||
import {
|
||||
CrewType,
|
||||
ShellType,
|
||||
TankClass,
|
||||
type EngineDefinition,
|
||||
type EquipmentDefinitions,
|
||||
type GunDefinition,
|
||||
@@ -19,8 +22,7 @@ import {
|
||||
type TankDefinition,
|
||||
type TrackDefinition,
|
||||
type TurretDefinition,
|
||||
} from "@blitzkit/core";
|
||||
import { coefficient } from "@blitzkit/core/src/blitzkit/coefficient";
|
||||
} from "@blitzkit/protos";
|
||||
import type { EquipmentMatrix } from "../../stores/duel";
|
||||
import { defaultEqualizer } from "./tankToDuelMember";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ProvisionDefinitions, TankDefinition } from '@blitzkit/core';
|
||||
import { uniqueId } from 'lodash-es';
|
||||
import type { CompareMember } from '../../stores/compareEphemeral';
|
||||
import { tankToDuelMember } from './tankToDuelMember';
|
||||
import type { ProvisionDefinitions, TankDefinition } from "@blitzkit/protos";
|
||||
import { uniqueId } from "lodash-es";
|
||||
import type { CompareMember } from "../../stores/compareEphemeral";
|
||||
import { tankToDuelMember } from "./tankToDuelMember";
|
||||
|
||||
export function tankToCompareMember(
|
||||
tank: TankDefinition,
|
||||
|
||||
Reference in new issue
Block a user