@origingame/engine 0.3.0 → 0.4.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.
Files changed (84) hide show
  1. package/dist/web/origin-engine.d.ts +38 -2
  2. package/dist/web/origin-engine.js +250 -10
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +14 -2
  5. package/dist/web-publish/origin-engine-lanes.js +255 -34
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +39 -3
  8. package/dist/web-publish/origin-engine.js +253 -32
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +15 -3
  11. package/dist/web-publish-2d/origin-engine-lanes.js +253 -32
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +38 -2
  14. package/dist/web-publish-2d/origin-engine.js +250 -29
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +14 -2
  17. package/knowledge/README.md +2 -1
  18. package/knowledge/guides/three-to-og.md +393 -0
  19. package/knowledge/knowledge.json +2 -1
  20. package/knowledge/package.json +3 -2
  21. package/knowledge/scaffold/origin-engine.json +2 -2
  22. package/knowledge/scaffold/template/package.json +1 -1
  23. package/knowledge/scaffold/template/project.ogt +1 -1
  24. package/knowledge/scripts/validate.ts +140 -21
  25. package/knowledge/skills/og-audio/SKILL.md +2 -2
  26. package/knowledge/skills/og-build/SKILL.md +22 -3
  27. package/knowledge/skills/og-core/SKILL.md +20 -5
  28. package/knowledge/skills/og-feel/SKILL.md +2 -2
  29. package/knowledge/skills/og-game/SKILL.md +481 -35
  30. package/knowledge/skills/og-i18n/SKILL.md +7 -7
  31. package/knowledge/skills/og-model/SKILL.md +374 -0
  32. package/knowledge/skills/og-platform-sdk/SKILL.md +1 -1
  33. package/knowledge/skills/og-ui/SKILL.md +15 -8
  34. package/knowledge/wiki/ai.md +20 -20
  35. package/knowledge/wiki/anim.md +63 -55
  36. package/knowledge/wiki/atmosphere.md +13 -13
  37. package/knowledge/wiki/audio.md +18 -18
  38. package/knowledge/wiki/camera.md +13 -13
  39. package/knowledge/wiki/commands.md +11 -11
  40. package/knowledge/wiki/debug.md +13 -13
  41. package/knowledge/wiki/game.md +8 -8
  42. package/knowledge/wiki/i18n.md +7 -7
  43. package/knowledge/wiki/index.md +57 -3
  44. package/knowledge/wiki/input.md +47 -47
  45. package/knowledge/wiki/load.md +57 -57
  46. package/knowledge/wiki/nav.md +34 -34
  47. package/knowledge/wiki/net.md +10 -10
  48. package/knowledge/wiki/path.md +14 -14
  49. package/knowledge/wiki/physics.md +95 -95
  50. package/knowledge/wiki/platform.md +44 -44
  51. package/knowledge/wiki/probe.md +86 -86
  52. package/knowledge/wiki/reflect.md +16 -4
  53. package/knowledge/wiki/render.md +1168 -170
  54. package/knowledge/wiki/rng.md +14 -14
  55. package/knowledge/wiki/shapes.md +727 -0
  56. package/knowledge/wiki/stream.md +15 -15
  57. package/knowledge/wiki/system.md +8 -8
  58. package/knowledge/wiki/systems.md +2 -2
  59. package/knowledge/wiki/terrain.md +24 -20
  60. package/knowledge/wiki/tilemap.md +13 -13
  61. package/knowledge/wiki/time.md +4 -4
  62. package/knowledge/wiki/timeline.md +14 -14
  63. package/knowledge/wiki/transform.md +8 -8
  64. package/knowledge/wiki/tween.md +17 -17
  65. package/knowledge/wiki/ui.md +245 -269
  66. package/knowledge/wiki/video.md +5 -5
  67. package/knowledge/wiki/world.md +36 -36
  68. package/package.json +4 -4
  69. package/schema/api.schema.json +1834 -305
  70. package/shell/platform.ts +5 -0
  71. package/shell/player.ts +8 -2
  72. package/shell/transport.ts +6 -0
  73. package/src/generated/abi.ts +37 -1
  74. package/src/geom.ts +260 -0
  75. package/src/index.ts +8 -1
  76. package/src/node/playtest-run.ts +1 -0
  77. package/src/platform-local.ts +2 -0
  78. package/src/playtest.ts +8 -0
  79. package/src/runtime.ts +87 -6
  80. package/src/ui-kit/settings.ts +9 -0
  81. package/src/web/shell.ts +1 -1
  82. package/src/web/worker.ts +2 -2
  83. package/types/bindings.json +697 -402
  84. package/types/index.d.ts +1045 -127
@@ -16,7 +16,7 @@ module video {
16
16
  # declarations follow, each quoted below
17
17
  ```
18
18
 
19
- <sub>`api.ogt` line 13361</sub>
19
+ <sub>`api.ogt` line 13931</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 13393</sub>
81
+ <sub>`api.ogt` line 13963</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 13366</sub>
97
+ <sub>`api.ogt` line 13936</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 13375</sub>
138
+ <sub>`api.ogt` line 13945</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 13368</sub>
157
+ <sub>`api.ogt` line 13938</sub>
@@ -16,7 +16,7 @@ module world {
16
16
  # declarations follow, each quoted below
17
17
  ```
18
18
 
19
- <sub>`api.ogt` line 778</sub>
19
+ <sub>`api.ogt` line 784</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 816</sub>
62
+ <sub>`api.ogt` line 822</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 833</sub>
78
+ <sub>`api.ogt` line 839</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 836</sub>
96
+ <sub>`api.ogt` line 842</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 838</sub>
124
+ <sub>`api.ogt` line 844</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 844</sub>
152
+ <sub>`api.ogt` line 850</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 850</sub>
180
+ <sub>`api.ogt` line 856</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 856</sub>
211
+ <sub>`api.ogt` line 862</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 864</sub>
246
+ <sub>`api.ogt` line 870</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 875</sub>
277
+ <sub>`api.ogt` line 881</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 883</sub>
308
+ <sub>`api.ogt` line 889</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 891</sub>
341
+ <sub>`api.ogt` line 897</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 900</sub>
370
+ <sub>`api.ogt` line 906</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 907</sub>
398
+ <sub>`api.ogt` line 913</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 913</sub>
426
+ <sub>`api.ogt` line 919</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 919</sub>
454
+ <sub>`api.ogt` line 925</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 925</sub>
483
+ <sub>`api.ogt` line 931</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 932</sub>
514
+ <sub>`api.ogt` line 938</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 940</sub>
547
+ <sub>`api.ogt` line 946</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 948</sub>
570
+ <sub>`api.ogt` line 954</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 953</sub>
600
+ <sub>`api.ogt` line 959</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 961</sub>
614
+ <sub>`api.ogt` line 967</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 963</sub>
637
+ <sub>`api.ogt` line 969</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 967</sub>
660
+ <sub>`api.ogt` line 973</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 973</sub>
674
+ <sub>`api.ogt` line 979</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 975</sub>
692
+ <sub>`api.ogt` line 981</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 976</sub>
710
+ <sub>`api.ogt` line 982</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 977</sub>
728
+ <sub>`api.ogt` line 983</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 978</sub>
756
+ <sub>`api.ogt` line 984</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 983</sub>
785
+ <sub>`api.ogt` line 989</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 989</sub>
817
+ <sub>`api.ogt` line 995</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 783</sub>
838
+ <sub>`api.ogt` line 789</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 795</sub>
874
+ <sub>`api.ogt` line 801</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 810</sub>
896
+ <sub>`api.ogt` line 816</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 826</sub>
920
+ <sub>`api.ogt` line 832</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 788</sub>
939
+ <sub>`api.ogt` line 794</sub>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origingame/engine",
3
- "version": "0.3.0",
3
+ "version": "0.4.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.3.0",
55
- "@origingame/engine-linux-x64": "0.3.0",
56
- "@origingame/engine-win32-x64": "0.3.0",
54
+ "@origingame/engine-darwin-arm64": "0.4.0",
55
+ "@origingame/engine-linux-x64": "0.4.0",
56
+ "@origingame/engine-win32-x64": "0.4.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",