gaesup-world 0.6.54 → 0.6.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { vec3 } from "@react-three/rapier";
|
|
3
3
|
import playActions, { subscribeActions } from "../../../animation/actions";
|
|
4
|
-
import Camera from "../../../camera";
|
|
5
4
|
import initCallback from "../../../controller/initialize/callback";
|
|
6
5
|
import { useGltfAndSize } from "../../../hooks/useGaesupGltf";
|
|
7
6
|
import { CharacterInnerRef, calcCharacterColliderProps, } from "../../inner/character";
|
|
@@ -36,5 +35,5 @@ export function CharacterRef(_a) {
|
|
|
36
35
|
animationResult: animationResult,
|
|
37
36
|
type: "character",
|
|
38
37
|
});
|
|
39
|
-
return (
|
|
38
|
+
return (_jsx(CharacterInnerRef, { animationRef: animationRef, refs: refs, urls: urls, currentAnimation: currentAnimation, children: props.children }));
|
|
40
39
|
}
|
|
@@ -10,8 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useContext, useMemo, useReducer, useRef } from "react";
|
|
15
|
+
import Camera from "../camera";
|
|
15
16
|
import { KeyboardControls } from "@react-three/drei";
|
|
16
17
|
import { GaesupComponent } from "../component";
|
|
17
18
|
import { GaesupWorldContext } from "../world/context";
|
|
@@ -70,5 +71,5 @@ export function GaesupControllerInner(props) {
|
|
|
70
71
|
controllerContext: gaesupControl.value,
|
|
71
72
|
controllerDispatch: gaesupControl.dispatch,
|
|
72
73
|
});
|
|
73
|
-
return (
|
|
74
|
+
return (_jsxs(GaesupControllerContext.Provider, { value: gaesupControl.value, children: [_jsx(Camera, { refs: refs, prop: prop, control: prop.keyControl }), _jsx(GaesupControllerDispatchContext.Provider, { value: gaesupControl.dispatch, children: _jsx(GaesupComponent, { props: prop, refs: refs, urls: props.urls }) })] }));
|
|
74
75
|
}
|