@origingame/engine 0.4.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.
Files changed (78) hide show
  1. package/dist/web/origin-engine.d.ts +8 -5
  2. package/dist/web/origin-engine.js +39 -19
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +6 -5
  5. package/dist/web-publish/origin-engine-lanes.js +49 -29
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +8 -5
  8. package/dist/web-publish/origin-engine.js +39 -19
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +6 -5
  11. package/dist/web-publish-2d/origin-engine-lanes.js +49 -29
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +8 -5
  14. package/dist/web-publish-2d/origin-engine.js +39 -19
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +6 -5
  17. package/knowledge/looks/catalogue.json +123 -2
  18. package/knowledge/package.json +1 -1
  19. package/knowledge/scaffold/origin-engine.json +2 -2
  20. package/knowledge/scaffold/template/package.json +1 -1
  21. package/knowledge/scaffold/template/project.ogt +1 -1
  22. package/knowledge/scripts/validate.ts +69 -6
  23. package/knowledge/skills/og-audio/SKILL.md +31 -5
  24. package/knowledge/skills/og-build/SKILL.md +44 -4
  25. package/knowledge/skills/og-core/SKILL.md +4 -3
  26. package/knowledge/skills/og-feel/SKILL.md +9 -1
  27. package/knowledge/skills/og-game/SKILL.md +199 -16
  28. package/knowledge/skills/og-platform-sdk/SKILL.md +6 -0
  29. package/knowledge/skills/og-taste/SKILL.md +7 -0
  30. package/knowledge/skills/og-ui/SKILL.md +24 -0
  31. package/knowledge/wiki/ai.md +20 -20
  32. package/knowledge/wiki/anim.md +526 -60
  33. package/knowledge/wiki/atmosphere.md +13 -13
  34. package/knowledge/wiki/audio.md +160 -20
  35. package/knowledge/wiki/camera.md +13 -13
  36. package/knowledge/wiki/commands.md +11 -11
  37. package/knowledge/wiki/debug.md +13 -13
  38. package/knowledge/wiki/game.md +8 -8
  39. package/knowledge/wiki/i18n.md +7 -7
  40. package/knowledge/wiki/index.md +25 -1
  41. package/knowledge/wiki/input.md +47 -47
  42. package/knowledge/wiki/load.md +76 -50
  43. package/knowledge/wiki/math.md +102 -102
  44. package/knowledge/wiki/nav.md +34 -34
  45. package/knowledge/wiki/net.md +10 -10
  46. package/knowledge/wiki/path.md +14 -14
  47. package/knowledge/wiki/physics.md +111 -100
  48. package/knowledge/wiki/platform.md +44 -44
  49. package/knowledge/wiki/probe.md +86 -86
  50. package/knowledge/wiki/reflect.md +17 -17
  51. package/knowledge/wiki/render.md +245 -176
  52. package/knowledge/wiki/rng.md +14 -14
  53. package/knowledge/wiki/shapes.md +26 -26
  54. package/knowledge/wiki/stream.md +15 -15
  55. package/knowledge/wiki/system.md +8 -8
  56. package/knowledge/wiki/systems.md +2 -2
  57. package/knowledge/wiki/terrain.md +19 -19
  58. package/knowledge/wiki/tilemap.md +13 -13
  59. package/knowledge/wiki/time.md +4 -4
  60. package/knowledge/wiki/timeline.md +14 -14
  61. package/knowledge/wiki/transform.md +8 -8
  62. package/knowledge/wiki/tween.md +17 -17
  63. package/knowledge/wiki/ui.md +243 -243
  64. package/knowledge/wiki/video.md +5 -5
  65. package/knowledge/wiki/world.md +36 -36
  66. package/package.json +4 -4
  67. package/schema/api.schema.json +639 -11
  68. package/shell/page.ts +4 -0
  69. package/src/generated/abi.ts +3 -0
  70. package/src/index.ts +11 -0
  71. package/src/node/device.ts +5 -2
  72. package/src/node/polish.ts +34 -15
  73. package/src/node/run.ts +23 -6
  74. package/src/runtime.ts +1 -0
  75. package/src/web/gl-state.ts +907 -0
  76. package/src/web/worker.ts +6 -0
  77. package/types/bindings.json +823 -349
  78. package/types/index.d.ts +650 -15
@@ -16,7 +16,7 @@ module video {
16
16
  # declarations follow, each quoted below
17
17
  ```
18
18
 
19
- <sub>`api.ogt` line 13931</sub>
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 13963</sub>
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 13936</sub>
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 13945</sub>
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 13938</sub>
157
+ <sub>`api.ogt` line 14311</sub>
@@ -16,7 +16,7 @@ module world {
16
16
  # declarations follow, each quoted below
17
17
  ```
18
18
 
19
- <sub>`api.ogt` line 784</sub>
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 822</sub>
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 839</sub>
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 842</sub>
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 844</sub>
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 850</sub>
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 856</sub>
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 862</sub>
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 870</sub>
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 881</sub>
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 889</sub>
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 897</sub>
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 906</sub>
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 913</sub>
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 919</sub>
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 925</sub>
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 931</sub>
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 938</sub>
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 946</sub>
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 954</sub>
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 959</sub>
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 967</sub>
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 969</sub>
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 973</sub>
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 979</sub>
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 981</sub>
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 982</sub>
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 983</sub>
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 984</sub>
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 989</sub>
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 995</sub>
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 789</sub>
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 801</sub>
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 816</sub>
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 832</sub>
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 794</sub>
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.4.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.4.0",
55
- "@origingame/engine-linux-x64": "0.4.0",
56
- "@origingame/engine-win32-x64": "0.4.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",