mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: migration 2
This commit is contained in:
1 parent
e1c8194beb
commit
6285f33989
305 files changed
+414
-414
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { ObjectMap, useLoader } from '@react-three/fiber';
|
||||
import { GLTF, GLTFLoader } from 'three-stdlib';
|
||||
import { asset } from '../core/blitzkit/asset';
|
||||
|
||||
const cache: Record<
|
||||
number,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { equipmentDefinitions } from '@blitzkit/core';
|
||||
import { use, useMemo } from 'react';
|
||||
import * as Duel from '../../packages/website/src/stores/duel';
|
||||
import { equipmentDefinitions } from '../core/blitzkit/equipmentDefinitions';
|
||||
import * as Duel from '../stores/duel';
|
||||
|
||||
export function useEquipment(id: number, antagonist = false) {
|
||||
const awaitedEquipmentDefinitions = use(equipmentDefinitions);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import * as TankopediaEphemeral from '../../packages/website/src/stores/tankopediaEphemeral';
|
||||
import * as TankopediaEphemeral from '../stores/tankopediaEphemeral';
|
||||
|
||||
export function useTankModelDefinition() {
|
||||
return TankopediaEphemeral.use((state) => state.model);
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
import { RefObject, useEffect } from 'react';
|
||||
import { Euler, Group, Vector3 } from 'three';
|
||||
import { degToRad } from 'three/src/math/MathUtils';
|
||||
import { DuelMember } from '../../packages/website/src/stores/duel';
|
||||
import { I_HAT, J_HAT, K_HAT } from '../constants/axis';
|
||||
import { correctZYTuple } from '../core/blitz/correctZYTuple';
|
||||
import {
|
||||
ModelTransformEventData,
|
||||
modelTransformEvent,
|
||||
} from '../core/blitzkit/modelTransform';
|
||||
import { useTankModelDefinition } from './useTankModelDefinition';
|
||||
|
||||
export function useTankTransform(
|
||||
|
||||
Reference in new issue
Block a user