@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/video.md
CHANGED
|
@@ -16,7 +16,7 @@ module video {
|
|
|
16
16
|
# declarations follow, each quoted below
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
<sub>`api.ogt` line
|
|
19
|
+
<sub>`api.ogt` line 14304</sub>
|
|
20
20
|
|
|
21
21
|
## Contents
|
|
22
22
|
|
|
@@ -78,7 +78,7 @@ component VideoPlayer {
|
|
|
78
78
|
}
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
<sub>`api.ogt` line
|
|
81
|
+
<sub>`api.ogt` line 14336</sub>
|
|
82
82
|
|
|
83
83
|
## Types
|
|
84
84
|
|
|
@@ -94,7 +94,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
|
|
|
94
94
|
handle Video "Cooked footage: its frames as a texture array, its sound (og.load.video)."
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
<sub>`api.ogt` line
|
|
97
|
+
<sub>`api.ogt` line 14309</sub>
|
|
98
98
|
|
|
99
99
|
<a id="type-VideoInfo"></a>
|
|
100
100
|
|
|
@@ -135,7 +135,7 @@ struct VideoInfo {
|
|
|
135
135
|
}
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
<sub>`api.ogt` line
|
|
138
|
+
<sub>`api.ogt` line 14318</sub>
|
|
139
139
|
|
|
140
140
|
## Column kinds
|
|
141
141
|
|
|
@@ -154,4 +154,4 @@ column Video {
|
|
|
154
154
|
}
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
<sub>`api.ogt` line
|
|
157
|
+
<sub>`api.ogt` line 14311</sub>
|
package/knowledge/wiki/world.md
CHANGED
|
@@ -16,7 +16,7 @@ module world {
|
|
|
16
16
|
# declarations follow, each quoted below
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
<sub>`api.ogt` line
|
|
19
|
+
<sub>`api.ogt` line 785</sub>
|
|
20
20
|
|
|
21
21
|
## Contents
|
|
22
22
|
|
|
@@ -59,7 +59,7 @@ event WorldRestored {
|
|
|
59
59
|
}
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
<sub>`api.ogt` line
|
|
62
|
+
<sub>`api.ogt` line 823</sub>
|
|
63
63
|
|
|
64
64
|
## Interfaces
|
|
65
65
|
|
|
@@ -75,7 +75,7 @@ interface World {
|
|
|
75
75
|
# members follow, each quoted below
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
<sub>`api.ogt` line
|
|
78
|
+
<sub>`api.ogt` line 840</sub>
|
|
79
79
|
|
|
80
80
|
<a id="member-World-tick"></a>
|
|
81
81
|
|
|
@@ -93,7 +93,7 @@ Binding symbol `og_world_get_tick` · publish builds: kept
|
|
|
93
93
|
prop tick u32 "Fixed steps taken since the world was created."
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
<sub>`api.ogt` line
|
|
96
|
+
<sub>`api.ogt` line 843</sub>
|
|
97
97
|
|
|
98
98
|
<a id="member-World-spawn"></a>
|
|
99
99
|
|
|
@@ -121,7 +121,7 @@ fn spawn {
|
|
|
121
121
|
}
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
<sub>`api.ogt` line
|
|
124
|
+
<sub>`api.ogt` line 845</sub>
|
|
125
125
|
|
|
126
126
|
<a id="member-World-despawn"></a>
|
|
127
127
|
|
|
@@ -149,7 +149,7 @@ fn despawn {
|
|
|
149
149
|
}
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
<sub>`api.ogt` line
|
|
152
|
+
<sub>`api.ogt` line 851</sub>
|
|
153
153
|
|
|
154
154
|
<a id="member-World-alive"></a>
|
|
155
155
|
|
|
@@ -177,7 +177,7 @@ fn alive {
|
|
|
177
177
|
}
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
<sub>`api.ogt` line
|
|
180
|
+
<sub>`api.ogt` line 857</sub>
|
|
181
181
|
|
|
182
182
|
<a id="member-World-has"></a>
|
|
183
183
|
|
|
@@ -208,7 +208,7 @@ fn has {
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
<sub>`api.ogt` line
|
|
211
|
+
<sub>`api.ogt` line 863</sub>
|
|
212
212
|
|
|
213
213
|
<a id="member-World-insert"></a>
|
|
214
214
|
|
|
@@ -243,7 +243,7 @@ fn insert {
|
|
|
243
243
|
}
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
-
<sub>`api.ogt` line
|
|
246
|
+
<sub>`api.ogt` line 871</sub>
|
|
247
247
|
|
|
248
248
|
<a id="member-World-remove"></a>
|
|
249
249
|
|
|
@@ -274,7 +274,7 @@ fn remove {
|
|
|
274
274
|
}
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
<sub>`api.ogt` line
|
|
277
|
+
<sub>`api.ogt` line 882</sub>
|
|
278
278
|
|
|
279
279
|
<a id="member-World-get"></a>
|
|
280
280
|
|
|
@@ -305,7 +305,7 @@ fn get {
|
|
|
305
305
|
}
|
|
306
306
|
```
|
|
307
307
|
|
|
308
|
-
<sub>`api.ogt` line
|
|
308
|
+
<sub>`api.ogt` line 890</sub>
|
|
309
309
|
|
|
310
310
|
<a id="member-World-set"></a>
|
|
311
311
|
|
|
@@ -338,7 +338,7 @@ fn set {
|
|
|
338
338
|
}
|
|
339
339
|
```
|
|
340
340
|
|
|
341
|
-
<sub>`api.ogt` line
|
|
341
|
+
<sub>`api.ogt` line 898</sub>
|
|
342
342
|
|
|
343
343
|
<a id="member-World-resource"></a>
|
|
344
344
|
|
|
@@ -367,7 +367,7 @@ fn resource {
|
|
|
367
367
|
}
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
<sub>`api.ogt` line
|
|
370
|
+
<sub>`api.ogt` line 907</sub>
|
|
371
371
|
|
|
372
372
|
<a id="member-World-find"></a>
|
|
373
373
|
|
|
@@ -395,7 +395,7 @@ fn find {
|
|
|
395
395
|
}
|
|
396
396
|
```
|
|
397
397
|
|
|
398
|
-
<sub>`api.ogt` line
|
|
398
|
+
<sub>`api.ogt` line 914</sub>
|
|
399
399
|
|
|
400
400
|
<a id="member-World-nameOf"></a>
|
|
401
401
|
|
|
@@ -423,7 +423,7 @@ fn nameOf {
|
|
|
423
423
|
}
|
|
424
424
|
```
|
|
425
425
|
|
|
426
|
-
<sub>`api.ogt` line
|
|
426
|
+
<sub>`api.ogt` line 920</sub>
|
|
427
427
|
|
|
428
428
|
<a id="member-World-query"></a>
|
|
429
429
|
|
|
@@ -451,7 +451,7 @@ fn query {
|
|
|
451
451
|
}
|
|
452
452
|
```
|
|
453
453
|
|
|
454
|
-
<sub>`api.ogt` line
|
|
454
|
+
<sub>`api.ogt` line 926</sub>
|
|
455
455
|
|
|
456
456
|
<a id="member-World-events"></a>
|
|
457
457
|
|
|
@@ -480,7 +480,7 @@ fn events {
|
|
|
480
480
|
}
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
<sub>`api.ogt` line
|
|
483
|
+
<sub>`api.ogt` line 932</sub>
|
|
484
484
|
|
|
485
485
|
<a id="member-World-emit"></a>
|
|
486
486
|
|
|
@@ -511,7 +511,7 @@ fn emit {
|
|
|
511
511
|
}
|
|
512
512
|
```
|
|
513
513
|
|
|
514
|
-
<sub>`api.ogt` line
|
|
514
|
+
<sub>`api.ogt` line 939</sub>
|
|
515
515
|
|
|
516
516
|
<a id="member-World-instantiate"></a>
|
|
517
517
|
|
|
@@ -544,7 +544,7 @@ fn instantiate {
|
|
|
544
544
|
}
|
|
545
545
|
```
|
|
546
546
|
|
|
547
|
-
<sub>`api.ogt` line
|
|
547
|
+
<sub>`api.ogt` line 947</sub>
|
|
548
548
|
|
|
549
549
|
<a id="member-World-snapshot"></a>
|
|
550
550
|
|
|
@@ -567,7 +567,7 @@ fn snapshot {
|
|
|
567
567
|
}
|
|
568
568
|
```
|
|
569
569
|
|
|
570
|
-
<sub>`api.ogt` line
|
|
570
|
+
<sub>`api.ogt` line 955</sub>
|
|
571
571
|
|
|
572
572
|
<a id="member-World-restore"></a>
|
|
573
573
|
|
|
@@ -597,7 +597,7 @@ fn restore {
|
|
|
597
597
|
}
|
|
598
598
|
```
|
|
599
599
|
|
|
600
|
-
<sub>`api.ogt` line
|
|
600
|
+
<sub>`api.ogt` line 960</sub>
|
|
601
601
|
|
|
602
602
|
<a id="type-Query"></a>
|
|
603
603
|
|
|
@@ -611,7 +611,7 @@ interface Query {
|
|
|
611
611
|
# members follow, each quoted below
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
-
<sub>`api.ogt` line
|
|
614
|
+
<sub>`api.ogt` line 968</sub>
|
|
615
615
|
|
|
616
616
|
<a id="member-Query-archetypes"></a>
|
|
617
617
|
|
|
@@ -634,7 +634,7 @@ fn archetypes {
|
|
|
634
634
|
}
|
|
635
635
|
```
|
|
636
636
|
|
|
637
|
-
<sub>`api.ogt` line
|
|
637
|
+
<sub>`api.ogt` line 970</sub>
|
|
638
638
|
|
|
639
639
|
<a id="member-Query-count"></a>
|
|
640
640
|
|
|
@@ -657,7 +657,7 @@ fn count {
|
|
|
657
657
|
}
|
|
658
658
|
```
|
|
659
659
|
|
|
660
|
-
<sub>`api.ogt` line
|
|
660
|
+
<sub>`api.ogt` line 974</sub>
|
|
661
661
|
|
|
662
662
|
<a id="type-ArchetypeView"></a>
|
|
663
663
|
|
|
@@ -671,7 +671,7 @@ interface ArchetypeView {
|
|
|
671
671
|
# members follow, each quoted below
|
|
672
672
|
```
|
|
673
673
|
|
|
674
|
-
<sub>`api.ogt` line
|
|
674
|
+
<sub>`api.ogt` line 980</sub>
|
|
675
675
|
|
|
676
676
|
<a id="member-ArchetypeView-count"></a>
|
|
677
677
|
|
|
@@ -689,7 +689,7 @@ Binding symbol `og_archetype_view_get_count` · publish builds: kept
|
|
|
689
689
|
prop count u32 "The number of entities in the archetype."
|
|
690
690
|
```
|
|
691
691
|
|
|
692
|
-
<sub>`api.ogt` line
|
|
692
|
+
<sub>`api.ogt` line 982</sub>
|
|
693
693
|
|
|
694
694
|
<a id="member-ArchetypeView-tick"></a>
|
|
695
695
|
|
|
@@ -707,7 +707,7 @@ Binding symbol `og_archetype_view_get_tick` · publish builds: kept
|
|
|
707
707
|
prop tick u32 "The tick this view belongs to."
|
|
708
708
|
```
|
|
709
709
|
|
|
710
|
-
<sub>`api.ogt` line
|
|
710
|
+
<sub>`api.ogt` line 983</sub>
|
|
711
711
|
|
|
712
712
|
<a id="member-ArchetypeView-entities"></a>
|
|
713
713
|
|
|
@@ -725,7 +725,7 @@ Binding symbol `og_archetype_view_get_entities` · publish builds: kept
|
|
|
725
725
|
prop entities Uint32Array "The entities as (index, generation) pairs: entity i is at 2i and 2i + 1."
|
|
726
726
|
```
|
|
727
727
|
|
|
728
|
-
<sub>`api.ogt` line
|
|
728
|
+
<sub>`api.ogt` line 984</sub>
|
|
729
729
|
|
|
730
730
|
<a id="member-ArchetypeView-entity"></a>
|
|
731
731
|
|
|
@@ -753,7 +753,7 @@ fn entity {
|
|
|
753
753
|
}
|
|
754
754
|
```
|
|
755
755
|
|
|
756
|
-
<sub>`api.ogt` line
|
|
756
|
+
<sub>`api.ogt` line 985</sub>
|
|
757
757
|
|
|
758
758
|
<a id="member-ArchetypeView-has"></a>
|
|
759
759
|
|
|
@@ -782,7 +782,7 @@ fn has {
|
|
|
782
782
|
}
|
|
783
783
|
```
|
|
784
784
|
|
|
785
|
-
<sub>`api.ogt` line
|
|
785
|
+
<sub>`api.ogt` line 990</sub>
|
|
786
786
|
|
|
787
787
|
<a id="member-ArchetypeView-column"></a>
|
|
788
788
|
|
|
@@ -814,7 +814,7 @@ fn column {
|
|
|
814
814
|
}
|
|
815
815
|
```
|
|
816
816
|
|
|
817
|
-
<sub>`api.ogt` line
|
|
817
|
+
<sub>`api.ogt` line 996</sub>
|
|
818
818
|
|
|
819
819
|
## Types
|
|
820
820
|
|
|
@@ -835,7 +835,7 @@ handle Entity {
|
|
|
835
835
|
}
|
|
836
836
|
```
|
|
837
837
|
|
|
838
|
-
<sub>`api.ogt` line
|
|
838
|
+
<sub>`api.ogt` line 790</sub>
|
|
839
839
|
|
|
840
840
|
<a id="type-SpawnDesc"></a>
|
|
841
841
|
|
|
@@ -871,7 +871,7 @@ struct SpawnDesc {
|
|
|
871
871
|
}
|
|
872
872
|
```
|
|
873
873
|
|
|
874
|
-
<sub>`api.ogt` line
|
|
874
|
+
<sub>`api.ogt` line 802</sub>
|
|
875
875
|
|
|
876
876
|
<a id="type-RestoreDesc"></a>
|
|
877
877
|
|
|
@@ -893,7 +893,7 @@ struct RestoreDesc {
|
|
|
893
893
|
}
|
|
894
894
|
```
|
|
895
895
|
|
|
896
|
-
<sub>`api.ogt` line
|
|
896
|
+
<sub>`api.ogt` line 817</sub>
|
|
897
897
|
|
|
898
898
|
<a id="type-QueryDesc"></a>
|
|
899
899
|
|
|
@@ -917,7 +917,7 @@ struct QueryDesc {
|
|
|
917
917
|
}
|
|
918
918
|
```
|
|
919
919
|
|
|
920
|
-
<sub>`api.ogt` line
|
|
920
|
+
<sub>`api.ogt` line 833</sub>
|
|
921
921
|
|
|
922
922
|
## Column kinds
|
|
923
923
|
|
|
@@ -936,4 +936,4 @@ column Entity {
|
|
|
936
936
|
}
|
|
937
937
|
```
|
|
938
938
|
|
|
939
|
-
<sub>`api.ogt` line
|
|
939
|
+
<sub>`api.ogt` line 795</sub>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origingame/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Origin Engine: the TypeScript API, generated from crates/og-api/api.ogt, its runtime on the web (wasm in a Worker) and native (napi addon) hosts, the player shell, and the agents' knowledge (skills, wiki, style catalogue) in knowledge/.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"bun": ">=1.3"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@origingame/engine-darwin-arm64": "0.
|
|
55
|
-
"@origingame/engine-linux-x64": "0.
|
|
56
|
-
"@origingame/engine-win32-x64": "0.
|
|
54
|
+
"@origingame/engine-darwin-arm64": "0.5.0",
|
|
55
|
+
"@origingame/engine-linux-x64": "0.5.0",
|
|
56
|
+
"@origingame/engine-win32-x64": "0.5.0",
|
|
57
57
|
"@tsrs/darwin-arm64": "0.18.0-ts7.1.0-dev.20260929",
|
|
58
58
|
"@tsrs/linux-arm64-gnu": "0.18.0-ts7.1.0-dev.20260929",
|
|
59
59
|
"@tsrs/linux-arm64-musl": "0.18.0-ts7.1.0-dev.20260929",
|