mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 06:06:11 +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,5 +1,5 @@
|
||||
import { EquipmentPreset } from '@blitzkit/core';
|
||||
import type { EquipmentMatrix } from '../stores/duel';
|
||||
import { EquipmentPreset } from "@blitzkit/protos";
|
||||
import type { EquipmentMatrix } from "../stores/duel";
|
||||
|
||||
export function useAppliedEquipments(
|
||||
matrix: EquipmentMatrix,
|
||||
@@ -7,6 +7,6 @@ export function useAppliedEquipments(
|
||||
) {
|
||||
const flatMatrix = matrix.flat();
|
||||
return preset.slots.map(
|
||||
(options, index) => options[flatMatrix[index] == 1 ? 'right' : 'left'],
|
||||
(options, index) => options[flatMatrix[index] == 1 ? "right" : "left"],
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TankDefinition } from "@blitzkit/core";
|
||||
import { TankDefinition } from "@blitzkit/protos";
|
||||
import { sumBy } from "lodash-es";
|
||||
import { useMemo } from "react";
|
||||
import { api } from "../api/dynamic";
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import {
|
||||
I_HAT,
|
||||
J_HAT,
|
||||
K_HAT,
|
||||
TrackDefinition,
|
||||
TurretDefinition,
|
||||
} from "@blitzkit/core";
|
||||
import { I_HAT, J_HAT, K_HAT } from "@blitzkit/core";
|
||||
import { TrackDefinition, TurretDefinition } from "@blitzkit/protos";
|
||||
import { invalidate } from "@react-three/fiber";
|
||||
import type { QuicklimeEvent } from "quicklime";
|
||||
import { type RefObject, useEffect } from "react";
|
||||
|
||||
Reference in new issue
Block a user