@ringozz/godot 4.7.2-583 → 4.7.2-592
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/README.md +19 -1
- package/gen/classes/ArrayOccluder3D.ts +1 -1
- package/gen/classes/CPUParticles2D.ts +3 -3
- package/gen/classes/CPUParticles3D.ts +3 -3
- package/gen/classes/CSGPolygon3D.ts +1 -1
- package/gen/classes/CollisionPolygon2D.ts +1 -1
- package/gen/classes/CollisionPolygon3D.ts +1 -1
- package/gen/classes/ColorPalette.ts +1 -1
- package/gen/classes/ConcavePolygonShape2D.ts +1 -1
- package/gen/classes/ConcavePolygonShape3D.ts +1 -1
- package/gen/classes/ConvexPolygonShape2D.ts +1 -1
- package/gen/classes/ConvexPolygonShape3D.ts +1 -1
- package/gen/classes/FontVariation.ts +1 -1
- package/gen/classes/Gradient.ts +1 -1
- package/gen/classes/Line2D.ts +1 -1
- package/gen/classes/MultiMesh.ts +4 -4
- package/gen/classes/NavigationMesh.ts +1 -1
- package/gen/classes/NavigationObstacle2D.ts +1 -1
- package/gen/classes/NavigationObstacle3D.ts +1 -1
- package/gen/classes/NavigationPathQueryResult2D.ts +1 -1
- package/gen/classes/NavigationPathQueryResult3D.ts +1 -1
- package/gen/classes/NavigationPolygon.ts +1 -1
- package/gen/classes/OccluderPolygon2D.ts +1 -1
- package/gen/classes/Polygon2D.ts +3 -3
- package/gen/classes/PolygonOccluder3D.ts +1 -1
- package/gen/classes/Window.ts +1 -1
- package/gen/index.ts +0 -3
- package/gen/utility-functions.ts +114 -114
- package/gen/value-types/AABB.ts +267 -277
- package/gen/value-types/Basis.ts +313 -264
- package/gen/value-types/Color.ts +398 -268
- package/gen/value-types/Plane.ts +121 -125
- package/gen/value-types/Projection.ts +178 -126
- package/gen/value-types/Quaternion.ts +180 -179
- package/gen/value-types/Rect2.ts +169 -171
- package/gen/value-types/Rect2i.ts +148 -150
- package/gen/value-types/Transform2D.ts +192 -194
- package/gen/value-types/Transform3D.ts +133 -126
- package/gen/value-types/Vector2.ts +370 -354
- package/gen/value-types/Vector2i.ts +192 -191
- package/gen/value-types/Vector3.ts +354 -354
- package/gen/value-types/Vector3i.ts +187 -192
- package/gen/value-types/Vector4.ts +263 -274
- package/gen/value-types/Vector4i.ts +187 -198
- package/gen/value-types/index.ts +16 -16
- package/package.json +20 -4
- package/src/debug.ts +30 -27
- package/src/index.ts +0 -2
- package/src/runtime.ts +16 -7
package/src/runtime.ts
CHANGED
|
@@ -36,22 +36,31 @@ export const GodotVar = _mod.GodotVar as (new (...args: unknown[]) => GodotVar)
|
|
|
36
36
|
* - _C(this, methodId, ...args) → instance method
|
|
37
37
|
* - _C(classId, methodId, ...args) → static method
|
|
38
38
|
* - _C(null, methodId, ...args) → singleton lookup (_getInstance) or internal
|
|
39
|
-
* - _C(
|
|
39
|
+
* - _C(0n, methodId, ...args) → utility function (BigInt tags the call;
|
|
40
|
+
* arg types resolve by name at runtime)
|
|
40
41
|
*/
|
|
41
42
|
export const _C = _mod._C as (...args: unknown[]) => unknown;
|
|
42
43
|
|
|
43
44
|
/** Resolve a string name to its integer handle. */
|
|
44
45
|
export const _S = _mod._S as (name: string) => number;
|
|
45
46
|
|
|
46
|
-
/** Low-level property getter for value type fields. */
|
|
47
|
-
export const _get = _mod._get as (target: GodotVar, nameId: number) => unknown;
|
|
48
|
-
|
|
49
|
-
/** Low-level property setter for value type fields. */
|
|
50
|
-
export const _set = _mod._set as (target: GodotVar, nameId: number, val: unknown) => void;
|
|
51
|
-
|
|
52
47
|
/** Register Godot object wrapper. */
|
|
53
48
|
export const _R = _mod._R as (typeId: number, ctor: Function) => string;
|
|
54
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Value-type dispatch on tuple receivers: `_V(typeId, methodId, receiver, ...args)`.
|
|
52
|
+
* `methodId == SX_valueCtor` constructs (`_V(typeId, ctorSentinel, ctorIndex, ...args)`),
|
|
53
|
+
* negative ids are operators, non-negative ids are builtin methods.
|
|
54
|
+
*/
|
|
55
|
+
export const _V = _mod._V as (...args: unknown[]) => unknown;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Build a typed value-type Variant for a Variant-typed slot by resolving the
|
|
59
|
+
* property's type from the node; returns a GodotVar carrier the consuming `_C`
|
|
60
|
+
* unwraps. Used by react-hooks' useTween (tweenProperty final_val).
|
|
61
|
+
*/
|
|
62
|
+
export const toValueType = _mod.toValueType as (node: GodotVar, propName: string, value: unknown) => unknown;
|
|
63
|
+
|
|
55
64
|
/** Stage bytes into the web MEMFS (Godot's `copyToFS`); undefined on desktop. */
|
|
56
65
|
export const stageFile = (_mod as any).stageFile as ((path: string, bytes: Uint8Array) => void) | undefined;
|
|
57
66
|
|