@origingame/engine 0.3.0 → 0.5.0
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/web/origin-engine.d.ts +44 -5
- package/dist/web/origin-engine.js +279 -19
- package/dist/web/origin-engine_bg.wasm +0 -0
- package/dist/web/origin-engine_bg.wasm.d.ts +18 -5
- package/dist/web-publish/origin-engine-lanes.js +289 -48
- package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish/origin-engine.d.ts +44 -5
- package/dist/web-publish/origin-engine.js +279 -38
- package/dist/web-publish/origin-engine_bg.wasm +0 -0
- package/dist/web-publish/origin-engine_bg.wasm.d.ts +18 -5
- package/dist/web-publish-2d/origin-engine-lanes.js +289 -48
- package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine.d.ts +44 -5
- package/dist/web-publish-2d/origin-engine.js +279 -38
- package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +18 -5
- package/knowledge/README.md +2 -1
- package/knowledge/guides/three-to-og.md +393 -0
- package/knowledge/knowledge.json +2 -1
- package/knowledge/looks/catalogue.json +123 -2
- package/knowledge/package.json +3 -2
- package/knowledge/scaffold/origin-engine.json +2 -2
- package/knowledge/scaffold/template/package.json +1 -1
- package/knowledge/scaffold/template/project.ogt +1 -1
- package/knowledge/scripts/validate.ts +209 -27
- package/knowledge/skills/og-audio/SKILL.md +33 -7
- package/knowledge/skills/og-build/SKILL.md +66 -7
- package/knowledge/skills/og-core/SKILL.md +24 -8
- package/knowledge/skills/og-feel/SKILL.md +11 -3
- package/knowledge/skills/og-game/SKILL.md +680 -51
- package/knowledge/skills/og-i18n/SKILL.md +7 -7
- package/knowledge/skills/og-model/SKILL.md +374 -0
- package/knowledge/skills/og-platform-sdk/SKILL.md +7 -1
- package/knowledge/skills/og-taste/SKILL.md +7 -0
- package/knowledge/skills/og-ui/SKILL.md +39 -8
- package/knowledge/wiki/ai.md +20 -20
- package/knowledge/wiki/anim.md +537 -63
- package/knowledge/wiki/atmosphere.md +13 -13
- package/knowledge/wiki/audio.md +160 -20
- package/knowledge/wiki/camera.md +13 -13
- package/knowledge/wiki/commands.md +11 -11
- package/knowledge/wiki/debug.md +13 -13
- package/knowledge/wiki/game.md +8 -8
- package/knowledge/wiki/i18n.md +7 -7
- package/knowledge/wiki/index.md +81 -3
- package/knowledge/wiki/input.md +47 -47
- package/knowledge/wiki/load.md +83 -57
- package/knowledge/wiki/math.md +102 -102
- package/knowledge/wiki/nav.md +34 -34
- package/knowledge/wiki/net.md +10 -10
- package/knowledge/wiki/path.md +14 -14
- package/knowledge/wiki/physics.md +111 -100
- package/knowledge/wiki/platform.md +44 -44
- package/knowledge/wiki/probe.md +86 -86
- package/knowledge/wiki/reflect.md +30 -18
- package/knowledge/wiki/render.md +1243 -176
- package/knowledge/wiki/rng.md +14 -14
- package/knowledge/wiki/shapes.md +727 -0
- package/knowledge/wiki/stream.md +15 -15
- package/knowledge/wiki/system.md +8 -8
- package/knowledge/wiki/systems.md +2 -2
- package/knowledge/wiki/terrain.md +24 -20
- package/knowledge/wiki/tilemap.md +13 -13
- package/knowledge/wiki/time.md +4 -4
- package/knowledge/wiki/timeline.md +14 -14
- package/knowledge/wiki/transform.md +8 -8
- package/knowledge/wiki/tween.md +17 -17
- package/knowledge/wiki/ui.md +245 -269
- package/knowledge/wiki/video.md +5 -5
- package/knowledge/wiki/world.md +36 -36
- package/package.json +4 -4
- package/schema/api.schema.json +2238 -81
- package/shell/page.ts +4 -0
- package/shell/platform.ts +5 -0
- package/shell/player.ts +8 -2
- package/shell/transport.ts +6 -0
- package/src/generated/abi.ts +40 -1
- package/src/geom.ts +260 -0
- package/src/index.ts +19 -1
- package/src/node/device.ts +5 -2
- package/src/node/playtest-run.ts +1 -0
- package/src/node/polish.ts +34 -15
- package/src/node/run.ts +23 -6
- package/src/platform-local.ts +2 -0
- package/src/playtest.ts +8 -0
- package/src/runtime.ts +88 -6
- package/src/ui-kit/settings.ts +9 -0
- package/src/web/gl-state.ts +907 -0
- package/src/web/shell.ts +1 -1
- package/src/web/worker.ts +8 -2
- package/types/bindings.json +1222 -453
- package/types/index.d.ts +1868 -315
package/knowledge/wiki/ai.md
CHANGED
|
@@ -18,7 +18,7 @@ module ai {
|
|
|
18
18
|
# declarations follow, each quoted below
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
<sub>`api.ogt` line
|
|
21
|
+
<sub>`api.ogt` line 9869</sub>
|
|
22
22
|
|
|
23
23
|
## Contents
|
|
24
24
|
|
|
@@ -74,7 +74,7 @@ fn load {
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
<sub>`api.ogt` line
|
|
77
|
+
<sub>`api.ogt` line 10041</sub>
|
|
78
78
|
|
|
79
79
|
<a id="fn-parse"></a>
|
|
80
80
|
|
|
@@ -104,7 +104,7 @@ fn parse {
|
|
|
104
104
|
}
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
<sub>`api.ogt` line
|
|
107
|
+
<sub>`api.ogt` line 10048</sub>
|
|
108
108
|
|
|
109
109
|
<a id="fn-get"></a>
|
|
110
110
|
|
|
@@ -136,7 +136,7 @@ fn get {
|
|
|
136
136
|
}
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
<sub>`api.ogt` line
|
|
139
|
+
<sub>`api.ogt` line 10055</sub>
|
|
140
140
|
|
|
141
141
|
<a id="fn-set"></a>
|
|
142
142
|
|
|
@@ -170,7 +170,7 @@ fn set {
|
|
|
170
170
|
}
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
<sub>`api.ogt` line
|
|
173
|
+
<sub>`api.ogt` line 10063</sub>
|
|
174
174
|
|
|
175
175
|
<a id="fn-restart"></a>
|
|
176
176
|
|
|
@@ -200,7 +200,7 @@ fn restart {
|
|
|
200
200
|
}
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
<sub>`api.ogt` line
|
|
203
|
+
<sub>`api.ogt` line 10072</sub>
|
|
204
204
|
|
|
205
205
|
<a id="fn-noise"></a>
|
|
206
206
|
|
|
@@ -230,7 +230,7 @@ fn noise {
|
|
|
230
230
|
}
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
<sub>`api.ogt` line
|
|
233
|
+
<sub>`api.ogt` line 10079</sub>
|
|
234
234
|
|
|
235
235
|
<a id="fn-describe"></a>
|
|
236
236
|
|
|
@@ -260,7 +260,7 @@ fn describe {
|
|
|
260
260
|
}
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
<sub>`api.ogt` line
|
|
263
|
+
<sub>`api.ogt` line 10086</sub>
|
|
264
264
|
|
|
265
265
|
## Components, resources and events
|
|
266
266
|
|
|
@@ -310,7 +310,7 @@ component AiAgent {
|
|
|
310
310
|
}
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
-
<sub>`api.ogt` line
|
|
313
|
+
<sub>`api.ogt` line 9888</sub>
|
|
314
314
|
|
|
315
315
|
<a id="record-Perception"></a>
|
|
316
316
|
|
|
@@ -411,7 +411,7 @@ component Perception {
|
|
|
411
411
|
}
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
<sub>`api.ogt` line
|
|
414
|
+
<sub>`api.ogt` line 9914</sub>
|
|
415
415
|
|
|
416
416
|
<a id="record-Perceivable"></a>
|
|
417
417
|
|
|
@@ -440,7 +440,7 @@ component Perceivable {
|
|
|
440
440
|
}
|
|
441
441
|
```
|
|
442
442
|
|
|
443
|
-
<sub>`api.ogt` line
|
|
443
|
+
<sub>`api.ogt` line 9984</sub>
|
|
444
444
|
|
|
445
445
|
<a id="record-AiChanged"></a>
|
|
446
446
|
|
|
@@ -467,7 +467,7 @@ event AiChanged {
|
|
|
467
467
|
}
|
|
468
468
|
```
|
|
469
469
|
|
|
470
|
-
<sub>`api.ogt` line
|
|
470
|
+
<sub>`api.ogt` line 9996</sub>
|
|
471
471
|
|
|
472
472
|
## Types
|
|
473
473
|
|
|
@@ -483,7 +483,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
|
|
|
483
483
|
handle Behaviour "A loaded behaviour tree or state machine."
|
|
484
484
|
```
|
|
485
485
|
|
|
486
|
-
<sub>`api.ogt` line
|
|
486
|
+
<sub>`api.ogt` line 9875</sub>
|
|
487
487
|
|
|
488
488
|
<a id="type-BehaviourInfo"></a>
|
|
489
489
|
|
|
@@ -512,7 +512,7 @@ struct BehaviourInfo {
|
|
|
512
512
|
}
|
|
513
513
|
```
|
|
514
514
|
|
|
515
|
-
<sub>`api.ogt` line
|
|
515
|
+
<sub>`api.ogt` line 10004</sub>
|
|
516
516
|
|
|
517
517
|
<a id="type-NoiseDesc"></a>
|
|
518
518
|
|
|
@@ -544,7 +544,7 @@ struct NoiseDesc {
|
|
|
544
544
|
}
|
|
545
545
|
```
|
|
546
546
|
|
|
547
|
-
<sub>`api.ogt` line
|
|
547
|
+
<sub>`api.ogt` line 10014</sub>
|
|
548
548
|
|
|
549
549
|
<a id="type-AiDescription"></a>
|
|
550
550
|
|
|
@@ -579,7 +579,7 @@ struct AiDescription {
|
|
|
579
579
|
}
|
|
580
580
|
```
|
|
581
581
|
|
|
582
|
-
<sub>`api.ogt` line
|
|
582
|
+
<sub>`api.ogt` line 10028</sub>
|
|
583
583
|
|
|
584
584
|
## Column kinds
|
|
585
585
|
|
|
@@ -598,7 +598,7 @@ column Behaviour {
|
|
|
598
598
|
}
|
|
599
599
|
```
|
|
600
600
|
|
|
601
|
-
<sub>`api.ogt` line
|
|
601
|
+
<sub>`api.ogt` line 9877</sub>
|
|
602
602
|
|
|
603
603
|
## Constants
|
|
604
604
|
|
|
@@ -612,16 +612,16 @@ column Behaviour {
|
|
|
612
612
|
const AI_RUNNING u32 1 "AiAgent.status: the tree or state is still running."
|
|
613
613
|
```
|
|
614
614
|
|
|
615
|
-
<sub>`api.ogt` line
|
|
615
|
+
<sub>`api.ogt` line 9884</sub>
|
|
616
616
|
|
|
617
617
|
```ogt
|
|
618
618
|
const AI_SUCCESS u32 2 "AiAgent.status: the tree succeeded on the last think."
|
|
619
619
|
```
|
|
620
620
|
|
|
621
|
-
<sub>`api.ogt` line
|
|
621
|
+
<sub>`api.ogt` line 9885</sub>
|
|
622
622
|
|
|
623
623
|
```ogt
|
|
624
624
|
const AI_FAILURE u32 3 "AiAgent.status: the tree failed on the last think."
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
-
<sub>`api.ogt` line
|
|
627
|
+
<sub>`api.ogt` line 9886</sub>
|