goudengine 0.0.827 → 0.0.830
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 +116 -0
- package/dist/generated/diagnostic.g.d.ts +15 -0
- package/dist/generated/diagnostic.g.d.ts.map +1 -0
- package/dist/generated/diagnostic.g.js +50 -0
- package/dist/generated/diagnostic.g.js.map +1 -0
- package/dist/generated/errors.g.d.ts +37 -0
- package/dist/generated/errors.g.d.ts.map +1 -0
- package/dist/generated/errors.g.js +148 -0
- package/dist/generated/errors.g.js.map +1 -0
- package/dist/generated/index.g.d.ts +5 -2
- package/dist/generated/index.g.d.ts.map +1 -1
- package/dist/generated/index.g.js +20 -1
- package/dist/generated/index.g.js.map +1 -1
- package/dist/generated/node/index.g.d.ts +477 -3
- package/dist/generated/node/index.g.d.ts.map +1 -1
- package/dist/generated/node/index.g.js +1056 -15
- package/dist/generated/node/index.g.js.map +1 -1
- package/dist/generated/types/engine.g.d.ts +580 -0
- package/dist/generated/types/engine.g.d.ts.map +1 -1
- package/dist/generated/types/input.g.d.ts +77 -0
- package/dist/generated/types/input.g.d.ts.map +1 -1
- package/dist/generated/types/input.g.js +91 -1
- package/dist/generated/types/input.g.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/node/index.d.ts +6 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +28 -0
- package/dist/node/index.js.map +1 -0
- package/dist/shared/debugger.d.ts +9 -0
- package/dist/shared/debugger.d.ts.map +1 -0
- package/dist/shared/debugger.js +11 -0
- package/dist/shared/debugger.js.map +1 -0
- package/dist/shared/network.d.ts +39 -0
- package/dist/shared/network.d.ts.map +1 -0
- package/dist/shared/network.js +66 -0
- package/dist/shared/network.js.map +1 -0
- package/dist/web/generated/types/engine.g.d.ts +580 -0
- package/dist/web/generated/types/engine.g.d.ts.map +1 -1
- package/dist/web/generated/types/input.g.d.ts +77 -0
- package/dist/web/generated/types/input.g.d.ts.map +1 -1
- package/dist/web/generated/types/input.g.js +90 -0
- package/dist/web/generated/types/input.g.js.map +1 -1
- package/dist/web/generated/web/errors.g.d.ts +37 -0
- package/dist/web/generated/web/errors.g.d.ts.map +1 -0
- package/dist/web/generated/web/errors.g.js +136 -0
- package/dist/web/generated/web/errors.g.js.map +1 -0
- package/dist/web/generated/web/index.g.d.ts +198 -3
- package/dist/web/generated/web/index.g.d.ts.map +1 -1
- package/dist/web/generated/web/index.g.js +533 -5
- package/dist/web/generated/web/index.g.js.map +1 -1
- package/dist/web/shared/debugger.d.ts +9 -0
- package/dist/web/shared/debugger.d.ts.map +1 -0
- package/dist/web/shared/debugger.js +7 -0
- package/dist/web/shared/debugger.js.map +1 -0
- package/dist/web/shared/network.d.ts +39 -0
- package/dist/web/shared/network.d.ts.map +1 -0
- package/dist/web/shared/network.js +61 -0
- package/dist/web/shared/network.js.map +1 -0
- package/dist/web/web/index.d.ts +6 -0
- package/dist/web/web/index.d.ts.map +1 -0
- package/dist/web/web/index.js +6 -0
- package/dist/web/web/index.js.map +1 -0
- package/goud-engine-node.darwin-arm64.node +0 -0
- package/goud-engine-node.darwin-x64.node +0 -0
- package/goud-engine-node.linux-x64-gnu.node +0 -0
- package/goud-engine-node.win32-x64-msvc.node +0 -0
- package/index.d.ts +405 -0
- package/index.js +57 -52
- package/package.json +25 -19
- package/wasm/goud_engine.d.ts +719 -73
- package/wasm/goud_engine.js +1401 -20
- package/wasm/goud_engine_bg.wasm +0 -0
- package/wasm/goud_engine_bg.wasm.d.ts +183 -73
package/README.md
CHANGED
|
@@ -40,6 +40,116 @@ const game = await GoudGame.create(800, 600, "My Game");
|
|
|
40
40
|
// same API as Node
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
## Networking
|
|
44
|
+
|
|
45
|
+
Networking wrappers are available in both the Node and web builds.
|
|
46
|
+
|
|
47
|
+
- `goudengine/node`: host + client
|
|
48
|
+
- `goudengine/web`: WebSocket client only
|
|
49
|
+
|
|
50
|
+
Use `new NetworkManager(gameOrContext)` with `GoudGame` or `GoudContext`. `host()` and `connect()` return `NetworkEndpoint`. `connect()` stores the default peer ID, so clients can call `send(...)`. Host endpoints reply with `sendTo(...)`.
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { GoudContext, NetworkManager, NetworkProtocol } from "goudengine/node";
|
|
54
|
+
|
|
55
|
+
const hostContext = new GoudContext();
|
|
56
|
+
const clientContext = new GoudContext();
|
|
57
|
+
|
|
58
|
+
const host = new NetworkManager(hostContext).host(NetworkProtocol.Tcp, 9000);
|
|
59
|
+
const client = new NetworkManager(clientContext).connect(
|
|
60
|
+
NetworkProtocol.Tcp,
|
|
61
|
+
"127.0.0.1",
|
|
62
|
+
9000,
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
client.send(Buffer.from("ping"));
|
|
66
|
+
|
|
67
|
+
while (true) {
|
|
68
|
+
host.poll();
|
|
69
|
+
client.poll();
|
|
70
|
+
|
|
71
|
+
const packet = host.receive();
|
|
72
|
+
if (!packet) {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
host.sendTo(packet.peerId, Buffer.from("pong"));
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Browser note:
|
|
82
|
+
|
|
83
|
+
- On `goudengine/web`, use `NetworkProtocol.WebSocket`.
|
|
84
|
+
- Browser hosting is not supported.
|
|
85
|
+
- `connect()` returns before the socket is fully open, so poll until `peerCount() > 0` before sending.
|
|
86
|
+
|
|
87
|
+
Example:
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { GoudGame, NetworkManager, NetworkProtocol } from "goudengine/web";
|
|
91
|
+
|
|
92
|
+
const game = await GoudGame.create({ width: 800, height: 600, title: "Web Net" });
|
|
93
|
+
const endpoint = new NetworkManager(game).connect(
|
|
94
|
+
NetworkProtocol.WebSocket,
|
|
95
|
+
"ws://127.0.0.1:9001",
|
|
96
|
+
9001,
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Browser-specific limitations and workarounds are documented in the Web Platform Gotchas guide:
|
|
101
|
+
[`docs/src/guides/web-platform-gotchas.md`](../../docs/src/guides/web-platform-gotchas.md).
|
|
102
|
+
|
|
103
|
+
## Debugger Runtime
|
|
104
|
+
|
|
105
|
+
The debugger runtime is available on the desktop Node target. Enable it through `GoudContext` config, then use the raw JSON accessors or the thin parsed helpers from `goudengine/node`.
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import {
|
|
109
|
+
GoudContext,
|
|
110
|
+
parseDebuggerSnapshot,
|
|
111
|
+
} from "goudengine/node";
|
|
112
|
+
|
|
113
|
+
const ctx = new GoudContext({
|
|
114
|
+
debugger: {
|
|
115
|
+
enabled: true,
|
|
116
|
+
publishLocalAttach: true,
|
|
117
|
+
routeLabel: "ts-demo",
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
ctx.setDebuggerProfilingEnabled(true);
|
|
122
|
+
|
|
123
|
+
const snapshot = parseDebuggerSnapshot(ctx);
|
|
124
|
+
const manifestJson = ctx.getDebuggerManifestJson();
|
|
125
|
+
const memory = ctx.getMemorySummary();
|
|
126
|
+
|
|
127
|
+
ctx.setDebuggerSelectedEntity(42);
|
|
128
|
+
ctx.clearDebuggerSelectedEntity();
|
|
129
|
+
ctx.destroy();
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
The Node target also exposes pause, step, time-scale, debug-draw, input injection, capture, replay, and metrics methods on `GoudGame` and `GoudContext`. Capture, replay, and metrics stay Rust-owned and come back as raw artifact envelopes instead of TypeScript-specific debugger models.
|
|
133
|
+
|
|
134
|
+
`goudengine/web` does not expose the debugger runtime in this batch. The browser build throws an explicit unsupported error for these methods instead of silently no-oping.
|
|
135
|
+
|
|
136
|
+
See [`docs/src/guides/debugger-runtime.md`](../../docs/src/guides/debugger-runtime.md) for desktop-only scope, determinism limits, and the `goudengine-mcp` bridge workflow.
|
|
137
|
+
|
|
138
|
+
## Features
|
|
139
|
+
|
|
140
|
+
- 2D and 3D rendering with runtime renderer selection
|
|
141
|
+
- Entity Component System (ECS) with Transform2D, Sprite, and more
|
|
142
|
+
- Physics simulation (Rapier2D/3D): rigid bodies, colliders, raycasting, collision events
|
|
143
|
+
- Audio playback with per-channel volume (Music, SFX, Ambience, UI, Voice) and spatial audio
|
|
144
|
+
- Text rendering with TrueType/bitmap fonts, alignment, and word-wrapping
|
|
145
|
+
- Sprite animation with state machine controller, multi-layer blending, and tweening
|
|
146
|
+
- Scene management with transitions (instant, fade, custom)
|
|
147
|
+
- UI component system with hierarchical node tree
|
|
148
|
+
- Tiled map support for 2D worlds
|
|
149
|
+
- Input handling (keyboard, mouse)
|
|
150
|
+
- Dual targets: Node.js desktop (napi-rs) and web browser (wasm-bindgen)
|
|
151
|
+
- Structured error diagnostics with error codes and recovery hints
|
|
152
|
+
|
|
43
153
|
## Flappy Bird Example
|
|
44
154
|
|
|
45
155
|
A condensed Node.js version showing the core patterns — game loop, physics, sprite rendering,
|
|
@@ -153,6 +263,8 @@ A few things to keep in mind when targeting the browser:
|
|
|
153
263
|
browser tab is hidden. No extra handling is needed.
|
|
154
264
|
- **Touch input** -- Touch events are automatically mapped to mouse button 0.
|
|
155
265
|
`touchstart` maps to `press_mouse_button(0)`, `touchend` maps to `release_mouse_button(0)`.
|
|
266
|
+
- **More browser caveats** -- See the Web Platform Gotchas guide for async loop rules,
|
|
267
|
+
asset-loading caveats, and the current networking limitation on `goudengine/web`.
|
|
156
268
|
|
|
157
269
|
## Node vs Web Targets
|
|
158
270
|
|
|
@@ -204,9 +316,13 @@ npm run build:all # Node + Web
|
|
|
204
316
|
```bash
|
|
205
317
|
cd sdks/typescript
|
|
206
318
|
npm test # node --test test/*.test.mjs
|
|
319
|
+
npx c8 --reporter=text-summary npm test
|
|
207
320
|
npm run typecheck # tsc --noEmit for both targets
|
|
208
321
|
```
|
|
209
322
|
|
|
323
|
+
The TypeScript SDK CI gate expects at least `80%` line coverage across the
|
|
324
|
+
public SDK surface and publishes a Cobertura report from `c8`.
|
|
325
|
+
|
|
210
326
|
## Codegen
|
|
211
327
|
|
|
212
328
|
Most source files under `native/src/` and `src/generated/` are auto-generated
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diagnostic mode controls backtrace capture on errors (debug builds only).
|
|
3
|
+
*
|
|
4
|
+
* In web/WASM builds these are no-ops.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DiagnosticMode {
|
|
7
|
+
private static _enabled;
|
|
8
|
+
/** Enable or disable diagnostic mode. */
|
|
9
|
+
static setEnabled(enabled: boolean): void;
|
|
10
|
+
/** Returns whether diagnostic mode is currently enabled. */
|
|
11
|
+
static get isEnabled(): boolean;
|
|
12
|
+
/** Returns the backtrace captured from the most recent error, or empty string if none. */
|
|
13
|
+
static get lastBacktrace(): string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=diagnostic.g.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostic.g.d.ts","sourceRoot":"","sources":["../../src/generated/diagnostic.g.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAEhC,yCAAyC;IACzC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAWzC,4DAA4D;IAC5D,MAAM,KAAK,SAAS,IAAI,OAAO,CAS9B;IAED,0FAA0F;IAC1F,MAAM,KAAK,aAAa,IAAI,MAAM,CASjC;CAEF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is AUTO-GENERATED by GoudEngine codegen. DO NOT EDIT.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DiagnosticMode = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Diagnostic mode controls backtrace capture on errors (debug builds only).
|
|
7
|
+
*
|
|
8
|
+
* In web/WASM builds these are no-ops.
|
|
9
|
+
*/
|
|
10
|
+
class DiagnosticMode {
|
|
11
|
+
/** Enable or disable diagnostic mode. */
|
|
12
|
+
static setEnabled(enabled) {
|
|
13
|
+
try {
|
|
14
|
+
const native = require('../node/index.g.js');
|
|
15
|
+
if (typeof native.goud_diagnostic_set_enabled === 'function') {
|
|
16
|
+
native.goud_diagnostic_set_enabled(enabled);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
}
|
|
21
|
+
DiagnosticMode._enabled = enabled;
|
|
22
|
+
}
|
|
23
|
+
/** Returns whether diagnostic mode is currently enabled. */
|
|
24
|
+
static get isEnabled() {
|
|
25
|
+
try {
|
|
26
|
+
const native = require('../node/index.g.js');
|
|
27
|
+
if (typeof native.goud_diagnostic_is_enabled === 'function') {
|
|
28
|
+
return native.goud_diagnostic_is_enabled();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
}
|
|
33
|
+
return DiagnosticMode._enabled;
|
|
34
|
+
}
|
|
35
|
+
/** Returns the backtrace captured from the most recent error, or empty string if none. */
|
|
36
|
+
static get lastBacktrace() {
|
|
37
|
+
try {
|
|
38
|
+
const native = require('../node/index.g.js');
|
|
39
|
+
if (typeof native.goud_diagnostic_last_backtrace === 'function') {
|
|
40
|
+
return native.goud_diagnostic_last_backtrace() ?? "";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
}
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.DiagnosticMode = DiagnosticMode;
|
|
49
|
+
DiagnosticMode._enabled = false;
|
|
50
|
+
//# sourceMappingURL=diagnostic.g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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verable = 0,
|
|
3
|
+
Fatal = 1,
|
|
4
|
+
Degraded = 2
|
|
5
|
+
}
|
|
6
|
+
/** Base error for all GoudEngine errors. */
|
|
7
|
+
export declare class GoudError extends Error {
|
|
8
|
+
readonly code: number;
|
|
9
|
+
readonly category: string;
|
|
10
|
+
readonly subsystem: string;
|
|
11
|
+
readonly operation: string;
|
|
12
|
+
readonly recovery: RecoveryClass;
|
|
13
|
+
readonly recoveryHint: string;
|
|
14
|
+
constructor(code: number, message: string, category: string, subsystem: string, operation: string, recovery: RecoveryClass, recoveryHint: string);
|
|
15
|
+
/**
|
|
16
|
+
* Build the correct typed error subclass from a code and message.
|
|
17
|
+
* Subsystem and operation are optional context strings.
|
|
18
|
+
*/
|
|
19
|
+
static fromCode(code: number, message: string, subsystem?: string, operation?: string): GoudError;
|
|
20
|
+
}
|
|
21
|
+
export declare class GoudContextError extends GoudError {
|
|
22
|
+
}
|
|
23
|
+
export declare class GoudResourceError extends GoudError {
|
|
24
|
+
}
|
|
25
|
+
export declare class GoudGraphicsError extends GoudError {
|
|
26
|
+
}
|
|
27
|
+
export declare class GoudEntityError extends GoudError {
|
|
28
|
+
}
|
|
29
|
+
export declare class GoudInputError extends GoudError {
|
|
30
|
+
}
|
|
31
|
+
export declare class GoudSystemError extends GoudError {
|
|
32
|
+
}
|
|
33
|
+
export declare class GoudProviderError extends GoudError {
|
|
34
|
+
}
|
|
35
|
+
export declare class GoudInternalError extends GoudError {
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=errors.g.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.g.d.ts","sourceRoot":"","sources":["../../src/generated/errors.g.ts"],"names":[],"mappings":"AAEA,oBAAY,aAAa;IACvB,WAAW,IAAI;IACf,KAAK,IAAI;IACT,QAAQ,IAAI;CACb;AAED,4CAA4C;AAC5C,qBAAa,SAAU,SAAQ,KAAK;IAClC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,QAAQ,EAAE,aAAa,CAAC;IACxC,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAGnC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,MAAM;IAetB;;;OAGG;IACH,MAAM,CAAC,QAAQ,CACb,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,MAAW,EACtB,SAAS,GAAE,MAAW,GACrB,SAAS;CAUb;AAED,qBAAa,gBAAiB,SAAQ,SAAS;CAAG;AAClD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AACnD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AACnD,qBAAa,eAAgB,SAAQ,SAAS;CAAG;AACjD,qBAAa,cAAe,SAAQ,SAAS;CAAG;AAChD,qBAAa,eAAgB,SAAQ,SAAS;CAAG;AACjD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AACnD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is AUTO-GENERATED by GoudEngine codegen. DO NOT EDIT.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GoudInternalError = exports.GoudProviderError = exports.GoudSystemError = exports.GoudInputError = exports.GoudEntityError = exports.GoudGraphicsError = exports.GoudResourceError = exports.GoudContextError = exports.GoudError = exports.RecoveryClass = void 0;
|
|
5
|
+
var RecoveryClass;
|
|
6
|
+
(function (RecoveryClass) {
|
|
7
|
+
RecoveryClass[RecoveryClass["Recoverable"] = 0] = "Recoverable";
|
|
8
|
+
RecoveryClass[RecoveryClass["Fatal"] = 1] = "Fatal";
|
|
9
|
+
RecoveryClass[RecoveryClass["Degraded"] = 2] = "Degraded";
|
|
10
|
+
})(RecoveryClass || (exports.RecoveryClass = RecoveryClass = {}));
|
|
11
|
+
/** Base error for all GoudEngine errors. */
|
|
12
|
+
class GoudError extends Error {
|
|
13
|
+
constructor(code, message, category, subsystem, operation, recovery, recoveryHint) {
|
|
14
|
+
super(message);
|
|
15
|
+
this.name = new.target.name;
|
|
16
|
+
this.code = code;
|
|
17
|
+
this.category = category;
|
|
18
|
+
this.subsystem = subsystem;
|
|
19
|
+
this.operation = operation;
|
|
20
|
+
this.recovery = recovery;
|
|
21
|
+
this.recoveryHint = recoveryHint;
|
|
22
|
+
// Maintain proper prototype chain for instanceof checks
|
|
23
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Build the correct typed error subclass from a code and message.
|
|
27
|
+
* Subsystem and operation are optional context strings.
|
|
28
|
+
*/
|
|
29
|
+
static fromCode(code, message, subsystem = "", operation = "") {
|
|
30
|
+
const category = categoryFromCode(code);
|
|
31
|
+
const recovery = recoveryFromCategory(category);
|
|
32
|
+
const hint = hintFromCode(code);
|
|
33
|
+
const Subclass = CATEGORY_CLASS_MAP[category] ?? GoudError;
|
|
34
|
+
return new Subclass(code, message, category, subsystem, operation, recovery, hint);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.GoudError = GoudError;
|
|
38
|
+
class GoudContextError extends GoudError {
|
|
39
|
+
}
|
|
40
|
+
exports.GoudContextError = GoudContextError;
|
|
41
|
+
class GoudResourceError extends GoudError {
|
|
42
|
+
}
|
|
43
|
+
exports.GoudResourceError = GoudResourceError;
|
|
44
|
+
class GoudGraphicsError extends GoudError {
|
|
45
|
+
}
|
|
46
|
+
exports.GoudGraphicsError = GoudGraphicsError;
|
|
47
|
+
class GoudEntityError extends GoudError {
|
|
48
|
+
}
|
|
49
|
+
exports.GoudEntityError = GoudEntityError;
|
|
50
|
+
class GoudInputError extends GoudError {
|
|
51
|
+
}
|
|
52
|
+
exports.GoudInputError = GoudInputError;
|
|
53
|
+
class GoudSystemError extends GoudError {
|
|
54
|
+
}
|
|
55
|
+
exports.GoudSystemError = GoudSystemError;
|
|
56
|
+
class GoudProviderError extends GoudError {
|
|
57
|
+
}
|
|
58
|
+
exports.GoudProviderError = GoudProviderError;
|
|
59
|
+
class GoudInternalError extends GoudError {
|
|
60
|
+
}
|
|
61
|
+
exports.GoudInternalError = GoudInternalError;
|
|
62
|
+
const CATEGORY_CLASS_MAP = {
|
|
63
|
+
Context: GoudContextError,
|
|
64
|
+
Resource: GoudResourceError,
|
|
65
|
+
Graphics: GoudGraphicsError,
|
|
66
|
+
Entity: GoudEntityError,
|
|
67
|
+
Input: GoudInputError,
|
|
68
|
+
System: GoudSystemError,
|
|
69
|
+
Provider: GoudProviderError,
|
|
70
|
+
Internal: GoudInternalError,
|
|
71
|
+
};
|
|
72
|
+
function categoryFromCode(code) {
|
|
73
|
+
if (code >= 900)
|
|
74
|
+
return "Internal";
|
|
75
|
+
if (code >= 600)
|
|
76
|
+
return "Provider";
|
|
77
|
+
if (code >= 500)
|
|
78
|
+
return "System";
|
|
79
|
+
if (code >= 400)
|
|
80
|
+
return "Input";
|
|
81
|
+
if (code >= 300)
|
|
82
|
+
return "Entity";
|
|
83
|
+
if (code >= 200)
|
|
84
|
+
return "Graphics";
|
|
85
|
+
if (code >= 100)
|
|
86
|
+
return "Resource";
|
|
87
|
+
if (code >= 1)
|
|
88
|
+
return "Context";
|
|
89
|
+
return "Unknown";
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Default recovery class derived from code range. This is a fallback
|
|
93
|
+
* for environments where the native FFI is not available (e.g., web).
|
|
94
|
+
* Desktop environments should prefer the value from
|
|
95
|
+
* goud_error_recovery_class.
|
|
96
|
+
*/
|
|
97
|
+
function recoveryFromCategory(category) {
|
|
98
|
+
switch (category) {
|
|
99
|
+
case "Context":
|
|
100
|
+
case "Internal":
|
|
101
|
+
return RecoveryClass.Fatal;
|
|
102
|
+
default:
|
|
103
|
+
return RecoveryClass.Recoverable;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/** Static hint lookup matching the codegen schema. */
|
|
107
|
+
function hintFromCode(code) {
|
|
108
|
+
return HINTS[code] ?? "";
|
|
109
|
+
}
|
|
110
|
+
const HINTS = {
|
|
111
|
+
1: "Call the initialization function first",
|
|
112
|
+
2: "Shut down the engine before re-initializing",
|
|
113
|
+
3: "Ensure the context was properly created and not corrupted",
|
|
114
|
+
4: "Re-initialize the engine to obtain a new context",
|
|
115
|
+
10: "Check the error message for details and verify dependencies",
|
|
116
|
+
100: "Verify the file path and check the working directory",
|
|
117
|
+
101: "Check file permissions and ensure the file is not locked",
|
|
118
|
+
102: "Verify the file is not corrupted and uses a supported format",
|
|
119
|
+
103: "Use a unique identifier or remove the existing resource first",
|
|
120
|
+
110: "Ensure the handle was obtained from a valid creation call",
|
|
121
|
+
111: "Re-create the resource to get a new handle",
|
|
122
|
+
112: "Pass the correct handle type for the operation",
|
|
123
|
+
200: "Review shader source; the error message contains GPU compiler output",
|
|
124
|
+
201: "Verify shader stage inputs/outputs match and uniforms are declared",
|
|
125
|
+
210: "Check texture dimensions and format; reduce size or free GPU resources",
|
|
126
|
+
211: "Reduce buffer size or free unused GPU buffers",
|
|
127
|
+
220: "Verify attachment formats and dimensions are consistent",
|
|
128
|
+
230: "Update GPU drivers or select a different supported backend",
|
|
129
|
+
240: "Verify buffer bindings and shader state; try updating GPU drivers",
|
|
130
|
+
300: "Verify the entity ID is valid and has not been despawned",
|
|
131
|
+
301: "Use a different entity ID or remove the existing entity first",
|
|
132
|
+
310: "Attach the component before accessing it, or check with a has-component query",
|
|
133
|
+
311: "Use replace/update instead of add, or remove the existing component first",
|
|
134
|
+
320: "Check for conflicting mutable/immutable access on the same component",
|
|
135
|
+
400: "Verify the input device is connected and recognized by the OS",
|
|
136
|
+
401: "Check the action name matches a registered input action",
|
|
137
|
+
500: "Verify display server is running and window parameters are valid",
|
|
138
|
+
510: "Check that an audio output device is available",
|
|
139
|
+
520: "Review physics configuration for invalid values",
|
|
140
|
+
530: "Check the error message for platform-specific details",
|
|
141
|
+
600: "Check provider configuration and dependencies",
|
|
142
|
+
601: "Register the provider before accessing it",
|
|
143
|
+
602: "Check the error message for operation-specific details",
|
|
144
|
+
900: "Report the error with full details; this is likely an engine bug",
|
|
145
|
+
901: "Use an alternative approach or wait for the feature to be implemented",
|
|
146
|
+
902: "Check the sequence of API calls; the engine may need re-initialization",
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=errors.g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.g.js","sourceRoot":"","sources":["../../src/generated/errors.g.ts"],"names":[],"mappings":";AAAA,kEAAkE;;;AAElE,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,+DAAe,CAAA;IACf,mDAAS,CAAA;IACT,yDAAY,CAAA;AACd,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,4CAA4C;AAC5C,MAAa,SAAU,SAAQ,KAAK;IAQlC,YACE,IAAY,EACZ,OAAe,EACf,QAAgB,EAChB,SAAiB,EACjB,SAAiB,EACjB,QAAuB,EACvB,YAAoB;QAEpB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,wDAAwD;QACxD,MAAM,CAAC,cA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EAAE,sEAAsE;IAC3E,GAAG,EAAE,oEAAoE;IACzE,GAAG,EAAE,wEAAwE;IAC7E,GAAG,EAAE,+CAA+C;IACpD,GAAG,EAAE,yDAAyD;IAC9D,GAAG,EAAE,4DAA4D;IACjE,GAAG,EAAE,mEAAmE;IACxE,GAAG,EAAE,0DAA0D;IAC/D,GAAG,EAAE,+DAA+D;IACpE,GAAG,EAAE,+EAA+E;IACpF,GAAG,EAAE,2EAA2E;IAChF,GAAG,EAAE,sEAAsE;IAC3E,GAAG,EAAE,+DAA+D;IACpE,GAAG,EAAE,yDAAyD;IAC9D,GAAG,EAAE,kEAAkE;IACvE,GAAG,EAAE,gDAAgD;IACrD,GAAG,EAAE,iDAAiD;IACtD,GAAG,EAAE,uDAAuD;IAC5D,GAAG,EAAE,+CAA+C;IACpD,GAAG,EAAE,2CAA2C;IAChD,GAAG,EAAE,wDAAwD;IAC7D,GAAG,EAAE,kEAAkE;IACvE,GAAG,EAAE,uEAAuE;IAC5E,GAAG,EAAE,wEAAwE;CAC9E,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export { GoudGame, Color, Vec2, Vec3, Key, MouseButton } from './node/index.g.js';
|
|
2
|
-
export type { IGoudGame, IEntity, IColor, IVec2, ITransform2DData, ISpriteData, IRenderStats, IContact } from './types/engine.g.js';
|
|
1
|
+
export { GoudGame, GoudContext, EngineConfig, UiManager, PhysicsWorld2D, PhysicsWorld3D, Color, Vec2, Vec3, Key, MouseButton, PhysicsBackend2D } from './node/index.g.js';
|
|
2
|
+
export type { IGoudGame, IEngineConfig, IUiManager, IUiStyle, IUiEvent, UiNodeId, IPhysicsWorld2D, IPhysicsWorld3D, IEntity, IColor, IVec2, ITransform2DData, ISpriteData, IRenderStats, IContact, IFpsStats, IDebuggerConfig, IContextConfig, IMemoryCategoryStats, IMemorySummary, IPhysicsRaycastHit2D, IPhysicsCollisionEvent2D, IAnimationEventData, IRenderCapabilities, IPhysicsCapabilities, IAudioCapabilities, IInputCapabilities, INetworkCapabilities, INetworkStats, INetworkSimulationConfig } from './types/engine.g.js';
|
|
3
|
+
export type { IGoudContext, INetworkConnectResult, INetworkPacket } from './node/index.g.js';
|
|
3
4
|
export type { Rect } from './types/math.g.js';
|
|
5
|
+
export { GoudError, GoudContextError, GoudResourceError, GoudGraphicsError, GoudEntityError, GoudInputError, GoudSystemError, GoudProviderError, GoudInternalError, RecoveryClass } from './errors.g.js';
|
|
6
|
+
export { DiagnosticMode } from './diagnostic.g.js';
|
|
4
7
|
//# sourceMappingURL=index.g.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.g.d.ts","sourceRoot":"","sources":["../../src/generated/index.g.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.g.d.ts","sourceRoot":"","sources":["../../src/generated/index.g.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1K,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,oBAAoB,EAAE,cAAc,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACxgB,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7F,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACzM,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is AUTO-GENERATED by GoudEngine codegen. DO NOT EDIT.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.MouseButton = exports.Key = exports.Vec3 = exports.Vec2 = exports.Color = exports.GoudGame = void 0;
|
|
4
|
+
exports.DiagnosticMode = exports.RecoveryClass = exports.GoudInternalError = exports.GoudProviderError = exports.GoudSystemError = exports.GoudInputError = exports.GoudEntityError = exports.GoudGraphicsError = exports.GoudResourceError = exports.GoudContextError = exports.GoudError = exports.PhysicsBackend2D = exports.MouseButton = exports.Key = exports.Vec3 = exports.Vec2 = exports.Color = exports.PhysicsWorld3D = exports.PhysicsWorld2D = exports.UiManager = exports.EngineConfig = exports.GoudContext = exports.GoudGame = void 0;
|
|
5
5
|
var index_g_js_1 = require("./node/index.g.js");
|
|
6
6
|
Object.defineProperty(exports, "GoudGame", { enumerable: true, get: function () { return index_g_js_1.GoudGame; } });
|
|
7
|
+
Object.defineProperty(exports, "GoudContext", { enumerable: true, get: function () { return index_g_js_1.GoudContext; } });
|
|
8
|
+
Object.defineProperty(exports, "EngineConfig", { enumerable: true, get: function () { return index_g_js_1.EngineConfig; } });
|
|
9
|
+
Object.defineProperty(exports, "UiManager", { enumerable: true, get: function () { return index_g_js_1.UiManager; } });
|
|
10
|
+
Object.defineProperty(exports, "PhysicsWorld2D", { enumerable: true, get: function () { return index_g_js_1.PhysicsWorld2D; } });
|
|
11
|
+
Object.defineProperty(exports, "PhysicsWorld3D", { enumerable: true, get: function () { return index_g_js_1.PhysicsWorld3D; } });
|
|
7
12
|
Object.defineProperty(exports, "Color", { enumerable: true, get: function () { return index_g_js_1.Color; } });
|
|
8
13
|
Object.defineProperty(exports, "Vec2", { enumerable: true, get: function () { return index_g_js_1.Vec2; } });
|
|
9
14
|
Object.defineProperty(exports, "Vec3", { enumerable: true, get: function () { return index_g_js_1.Vec3; } });
|
|
10
15
|
Object.defineProperty(exports, "Key", { enumerable: true, get: function () { return index_g_js_1.Key; } });
|
|
11
16
|
Object.defineProperty(exports, "MouseButton", { enumerable: true, get: function () { return index_g_js_1.MouseButton; } });
|
|
17
|
+
Object.defineProperty(exports, "PhysicsBackend2D", { enumerable: true, get: function () { return index_g_js_1.PhysicsBackend2D; } });
|
|
18
|
+
var errors_g_js_1 = require("./errors.g.js");
|
|
19
|
+
Object.defineProperty(exports, "GoudError", { enumerable: true, get: function () { return errors_g_js_1.GoudError; } });
|
|
20
|
+
Object.defineProperty(exports, "GoudContextError", { enumerable: true, get: function () { return errors_g_js_1.GoudContextError; } });
|
|
21
|
+
Object.defineProperty(exports, "GoudResourceError", { enumerable: true, get: function () { return errors_g_js_1.GoudResourceError; } });
|
|
22
|
+
Object.defineProperty(exports, "GoudGraphicsError", { enumerable: true, get: function () { return errors_g_js_1.GoudGraphicsError; } });
|
|
23
|
+
Object.defineProperty(exports, "GoudEntityError", { enumerable: true, get: function () { return errors_g_js_1.GoudEntityError; } });
|
|
24
|
+
Object.defineProperty(exports, "GoudInputError", { enumerable: true, get: function () { return errors_g_js_1.GoudInputError; } });
|
|
25
|
+
Object.defineProperty(exports, "GoudSystemError", { enumerable: true, get: function () { return errors_g_js_1.GoudSystemError; } });
|
|
26
|
+
Object.defineProperty(exports, "GoudProviderError", { enumerable: true, get: function () { return errors_g_js_1.GoudProviderError; } });
|
|
27
|
+
Object.defineProperty(exports, "GoudInternalError", { enumerable: true, get: function () { return errors_g_js_1.GoudInternalError; } });
|
|
28
|
+
Object.defineProperty(exports, "RecoveryClass", { enumerable: true, get: function () { return errors_g_js_1.RecoveryClass; } });
|
|
29
|
+
var diagnostic_g_js_1 = require("./diagnostic.g.js");
|
|
30
|
+
Object.defineProperty(exports, "DiagnosticMode", { enumerable: true, get: function () { return diagnostic_g_js_1.DiagnosticMode; } });
|
|
12
31
|
//# sourceMappingURL=index.g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.g.js","sourceRoot":"","sources":["../../src/generated/index.g.ts"],"names":[],"mappings":";AAAA,kEAAkE;;;AAElE,
|
|
1
|
+
{"version":3,"file":"index.g.js","sourceRoot":"","sources":["../../src/generated/index.g.ts"],"names":[],"mappings":";AAAA,kEAAkE;;;AAElE,gDAA0K;AAAjK,sGAAA,QAAQ,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,uGAAA,SAAS,OAAA;AAAE,4GAAA,cAAc,OAAA;AAAE,4GAAA,cAAc,OAAA;AAAE,mGAAA,KAAK,OAAA;AAAE,kGAAA,IAAI,OAAA;AAAE,kGAAA,IAAI,OAAA;AAAE,iGAAA,GAAG,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,8GAAA,gBAAgB,OAAA;AAI9I,6CAAyM;AAAhM,wGAAA,SAAS,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,8GAAA,eAAe,OAAA;AAAE,6GAAA,cAAc,OAAA;AAAE,8GAAA,eAAe,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,4GAAA,aAAa,OAAA;AACjL,qDAAmD;AAA1C,iHAAA,cAAc,OAAA"}
|