gaesup-world 0.0.768 → 0.0.771
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.
- package/dist/gaesup/index.d.ts +1 -1
- package/dist/gaesup/index.js +1 -1
- package/dist/gaesup/tools/index.d.ts +1 -0
- package/dist/gaesup/tools/index.js +1 -0
- package/dist/gaesup/tools/jumpPoint/index.d.ts +2 -0
- package/dist/gaesup/tools/jumpPoint/index.js +8 -0
- package/dist/gaesup/world/context/type.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/gaesup/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export { GaesupComponent, GaesupPassiveComponent } from "./component";
|
|
|
4
4
|
export { GaesupController } from "./controller";
|
|
5
5
|
export { GaeSupProps } from "./gaesupProps";
|
|
6
6
|
export { useGaesupController } from "./hooks";
|
|
7
|
-
export { GameBoy, GamePad, JoyStick, KeyBoardToolTip, MiniMap } from "./tools";
|
|
7
|
+
export { GameBoy, GamePad, JoyStick, JumpPortal, KeyBoardToolTip, MiniMap, } from "./tools";
|
|
8
8
|
export { GaesupWorld } from "./world";
|
package/dist/gaesup/index.js
CHANGED
|
@@ -4,5 +4,5 @@ export { GaesupComponent, GaesupPassiveComponent } from "./component";
|
|
|
4
4
|
export { GaesupController } from "./controller";
|
|
5
5
|
export { GaeSupProps } from "./gaesupProps";
|
|
6
6
|
export { useGaesupController } from "./hooks";
|
|
7
|
-
export { GameBoy, GamePad, JoyStick, KeyBoardToolTip, MiniMap } from "./tools";
|
|
7
|
+
export { GameBoy, GamePad, JoyStick, JumpPortal, KeyBoardToolTip, MiniMap, } from "./tools";
|
|
8
8
|
export { GaesupWorld } from "./world";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
3
4
|
import { GaesupWorldContext } from "../../world/context/index.js";
|
|
4
5
|
import * as style from "./style.css";
|
|
5
6
|
export default function JumpPoint() {
|
|
@@ -12,3 +13,10 @@ export default function JumpPoint() {
|
|
|
12
13
|
}, children: obj.text }, key));
|
|
13
14
|
}) }));
|
|
14
15
|
}
|
|
16
|
+
export function JumpPortal(props) {
|
|
17
|
+
var refs = useContext(GaesupWorldContext).refs;
|
|
18
|
+
return (_jsx("div", { className: style.jumpPoint, onClick: function () {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
(_b = (_a = refs.rigidBodyRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.setTranslation(props.position, true);
|
|
21
|
+
}, style: assignInlineVars(props.jumpPortalStlye), children: props.text }));
|
|
22
|
+
}
|
|
@@ -3,6 +3,7 @@ import { actionsType, animationTagType, refsType } from "../../controller/type";
|
|
|
3
3
|
import { joyStickInnerType } from "../../tools/joystick/type";
|
|
4
4
|
import { keyboardMapType } from "../../tools/keyBoardToolTip/type";
|
|
5
5
|
import { minimapInnerType } from "../../tools/minimap/type";
|
|
6
|
+
import { VECssType } from "../../tools/type";
|
|
6
7
|
import { dispatchType } from "../../utils/type";
|
|
7
8
|
export type controlType = {
|
|
8
9
|
forward: boolean;
|
|
@@ -15,8 +16,9 @@ export type keyControlType = {
|
|
|
15
16
|
[key: string]: boolean;
|
|
16
17
|
};
|
|
17
18
|
export type pointType = {
|
|
18
|
-
text
|
|
19
|
+
text?: string;
|
|
19
20
|
position: THREE.Vector3;
|
|
21
|
+
jumpPortalStlye?: Partial<VECssType>;
|
|
20
22
|
};
|
|
21
23
|
export type pointsType = pointType[];
|
|
22
24
|
export type statesType = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GaeSupProps, GaesupController, GaesupWorld, GameBoy, GamePad, JoyStick, KeyBoardToolTip, MiniMap, playActions, } from "./gaesup";
|
|
1
|
+
export { GaeSupProps, GaesupController, GaesupWorld, GameBoy, GamePad, JoyStick, JumpPortal, KeyBoardToolTip, MiniMap, playActions, } from "./gaesup";
|
|
2
2
|
export { absolute, fixed, flex, flex_absolute, flex_relative, glass, grid, grid_fixed, relative, sprinkles, } from "./styles";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GaeSupProps, GaesupController, GaesupWorld, GameBoy, GamePad, JoyStick, KeyBoardToolTip, MiniMap, playActions, } from "./gaesup";
|
|
1
|
+
export { GaeSupProps, GaesupController, GaesupWorld, GameBoy, GamePad, JoyStick, JumpPortal, KeyBoardToolTip, MiniMap, playActions, } from "./gaesup";
|
|
2
2
|
export { absolute, fixed, flex, flex_absolute, flex_relative, glass, grid, grid_fixed, relative, sprinkles, } from "./styles";
|