@origingame/engine 0.1.0 → 0.2.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 (62) hide show
  1. package/dist/web/origin-engine.js +4 -4
  2. package/dist/web/origin-engine_bg.wasm +0 -0
  3. package/dist/web-publish/origin-engine-lanes.js +6 -6
  4. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  5. package/dist/web-publish/origin-engine.js +4 -4
  6. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  7. package/dist/web-publish-2d/origin-engine-lanes.js +6 -6
  8. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  9. package/dist/web-publish-2d/origin-engine.js +4 -4
  10. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  11. package/knowledge/package.json +4 -4
  12. package/knowledge/scaffold/origin-engine.json +2 -2
  13. package/knowledge/scaffold/template/gitignore +8 -0
  14. package/knowledge/scaffold/template/package.json +1 -1
  15. package/knowledge/scaffold/template/project.ogt +1 -1
  16. package/knowledge/scripts/lib.ts +5 -1
  17. package/knowledge/scripts/pack.ts +2 -1
  18. package/knowledge/scripts/validate.ts +2 -1
  19. package/knowledge/skills/og-build/SKILL.md +17 -1
  20. package/knowledge/skills/og-feel/SKILL.md +8 -1
  21. package/knowledge/skills/og-game/SKILL.md +117 -13
  22. package/knowledge/skills/og-i18n/SKILL.md +12 -3
  23. package/knowledge/skills/og-platform-sdk/SKILL.md +3 -1
  24. package/knowledge/skills/og-ui/SKILL.md +19 -6
  25. package/knowledge/wiki/ai.md +20 -20
  26. package/knowledge/wiki/anim.md +41 -41
  27. package/knowledge/wiki/atmosphere.md +13 -13
  28. package/knowledge/wiki/audio.md +18 -18
  29. package/knowledge/wiki/camera.md +13 -13
  30. package/knowledge/wiki/commands.md +11 -11
  31. package/knowledge/wiki/game.md +8 -8
  32. package/knowledge/wiki/i18n.md +7 -7
  33. package/knowledge/wiki/index.md +4 -1
  34. package/knowledge/wiki/input.md +47 -47
  35. package/knowledge/wiki/load.md +45 -45
  36. package/knowledge/wiki/math.md +7 -7
  37. package/knowledge/wiki/nav.md +34 -34
  38. package/knowledge/wiki/physics.md +124 -106
  39. package/knowledge/wiki/platform.md +31 -31
  40. package/knowledge/wiki/probe.md +66 -66
  41. package/knowledge/wiki/reflect.md +15 -15
  42. package/knowledge/wiki/render.md +99 -89
  43. package/knowledge/wiki/rng.md +14 -14
  44. package/knowledge/wiki/stream.md +15 -15
  45. package/knowledge/wiki/system.md +8 -8
  46. package/knowledge/wiki/systems.md +2 -2
  47. package/knowledge/wiki/terrain.md +19 -19
  48. package/knowledge/wiki/tilemap.md +19 -15
  49. package/knowledge/wiki/time.md +4 -4
  50. package/knowledge/wiki/transform.md +8 -8
  51. package/knowledge/wiki/tween.md +17 -17
  52. package/knowledge/wiki/ui.md +289 -245
  53. package/knowledge/wiki/world.md +67 -37
  54. package/package.json +6 -6
  55. package/schema/api.schema.json +134 -9
  56. package/src/index.ts +1 -0
  57. package/src/node/polish.ts +2 -1
  58. package/src/node/run.ts +5 -1
  59. package/src/runtime.ts +2 -0
  60. package/src/ui-kit/huds.ts +18 -14
  61. package/types/bindings.json +61 -26
  62. package/types/index.d.ts +144 -13
@@ -18,7 +18,7 @@ module load {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 3364</sub>
21
+ <sub>`api.ogt` line 3379</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -99,7 +99,7 @@ fn bundle {
99
99
  }
100
100
  ```
101
101
 
102
- <sub>`api.ogt` line 3493</sub>
102
+ <sub>`api.ogt` line 3508</sub>
103
103
 
104
104
  <a id="fn-bundleInfo"></a>
105
105
 
@@ -129,7 +129,7 @@ fn bundleInfo {
129
129
  }
130
130
  ```
131
131
 
132
- <sub>`api.ogt` line 3500</sub>
132
+ <sub>`api.ogt` line 3515</sub>
133
133
 
134
134
  <a id="fn-defaultBundle"></a>
135
135
 
@@ -157,7 +157,7 @@ fn defaultBundle {
157
157
  }
158
158
  ```
159
159
 
160
- <sub>`api.ogt` line 3507</sub>
160
+ <sub>`api.ogt` line 3522</sub>
161
161
 
162
162
  <a id="fn-gltf"></a>
163
163
 
@@ -192,7 +192,7 @@ fn gltf {
192
192
  }
193
193
  ```
194
194
 
195
- <sub>`api.ogt` line 3513</sub>
195
+ <sub>`api.ogt` line 3528</sub>
196
196
 
197
197
  <a id="fn-scene"></a>
198
198
 
@@ -222,7 +222,7 @@ fn scene {
222
222
  }
223
223
  ```
224
224
 
225
- <sub>`api.ogt` line 3522</sub>
225
+ <sub>`api.ogt` line 3537</sub>
226
226
 
227
227
  <a id="fn-font"></a>
228
228
 
@@ -252,7 +252,7 @@ fn font {
252
252
  }
253
253
  ```
254
254
 
255
- <sub>`api.ogt` line 3529</sub>
255
+ <sub>`api.ogt` line 3544</sub>
256
256
 
257
257
  <a id="fn-fontInfo"></a>
258
258
 
@@ -282,7 +282,7 @@ fn fontInfo {
282
282
  }
283
283
  ```
284
284
 
285
- <sub>`api.ogt` line 3536</sub>
285
+ <sub>`api.ogt` line 3551</sub>
286
286
 
287
287
  <a id="fn-sound"></a>
288
288
 
@@ -315,7 +315,7 @@ fn sound {
315
315
  }
316
316
  ```
317
317
 
318
- <sub>`api.ogt` line 3543</sub>
318
+ <sub>`api.ogt` line 3558</sub>
319
319
 
320
320
  <a id="fn-lut"></a>
321
321
 
@@ -345,7 +345,7 @@ fn lut {
345
345
  }
346
346
  ```
347
347
 
348
- <sub>`api.ogt` line 3551</sub>
348
+ <sub>`api.ogt` line 3566</sub>
349
349
 
350
350
  <a id="fn-environment"></a>
351
351
 
@@ -375,7 +375,7 @@ fn environment {
375
375
  }
376
376
  ```
377
377
 
378
- <sub>`api.ogt` line 3558</sub>
378
+ <sub>`api.ogt` line 3573</sub>
379
379
 
380
380
  <a id="fn-emitter"></a>
381
381
 
@@ -405,7 +405,7 @@ fn emitter {
405
405
  }
406
406
  ```
407
407
 
408
- <sub>`api.ogt` line 3565</sub>
408
+ <sub>`api.ogt` line 3580</sub>
409
409
 
410
410
  <a id="fn-shader"></a>
411
411
 
@@ -435,7 +435,7 @@ fn shader {
435
435
  }
436
436
  ```
437
437
 
438
- <sub>`api.ogt` line 3572</sub>
438
+ <sub>`api.ogt` line 3587</sub>
439
439
 
440
440
  <a id="fn-texture"></a>
441
441
 
@@ -468,7 +468,7 @@ fn texture {
468
468
  }
469
469
  ```
470
470
 
471
- <sub>`api.ogt` line 3579</sub>
471
+ <sub>`api.ogt` line 3594</sub>
472
472
 
473
473
  <a id="fn-textureArray"></a>
474
474
 
@@ -501,7 +501,7 @@ fn textureArray {
501
501
  }
502
502
  ```
503
503
 
504
- <sub>`api.ogt` line 3587</sub>
504
+ <sub>`api.ogt` line 3602</sub>
505
505
 
506
506
  <a id="fn-skin"></a>
507
507
 
@@ -531,7 +531,7 @@ fn skin {
531
531
  }
532
532
  ```
533
533
 
534
- <sub>`api.ogt` line 3595</sub>
534
+ <sub>`api.ogt` line 3610</sub>
535
535
 
536
536
  <a id="fn-look"></a>
537
537
 
@@ -561,7 +561,7 @@ fn look {
561
561
  }
562
562
  ```
563
563
 
564
- <sub>`api.ogt` line 3602</sub>
564
+ <sub>`api.ogt` line 3617</sub>
565
565
 
566
566
  <a id="fn-lookInfo"></a>
567
567
 
@@ -591,7 +591,7 @@ fn lookInfo {
591
591
  }
592
592
  ```
593
593
 
594
- <sub>`api.ogt` line 3609</sub>
594
+ <sub>`api.ogt` line 3624</sub>
595
595
 
596
596
  <a id="fn-palette"></a>
597
597
 
@@ -621,7 +621,7 @@ fn palette {
621
621
  }
622
622
  ```
623
623
 
624
- <sub>`api.ogt` line 3616</sub>
624
+ <sub>`api.ogt` line 3631</sub>
625
625
 
626
626
  <a id="fn-soundInfo"></a>
627
627
 
@@ -651,7 +651,7 @@ fn soundInfo {
651
651
  }
652
652
  ```
653
653
 
654
- <sub>`api.ogt` line 3623</sub>
654
+ <sub>`api.ogt` line 3638</sub>
655
655
 
656
656
  <a id="fn-status"></a>
657
657
 
@@ -681,7 +681,7 @@ fn status {
681
681
  }
682
682
  ```
683
683
 
684
- <sub>`api.ogt` line 3630</sub>
684
+ <sub>`api.ogt` line 3645</sub>
685
685
 
686
686
  <a id="fn-error"></a>
687
687
 
@@ -711,7 +711,7 @@ fn error {
711
711
  }
712
712
  ```
713
713
 
714
- <sub>`api.ogt` line 3637</sub>
714
+ <sub>`api.ogt` line 3652</sub>
715
715
 
716
716
  <a id="fn-gltfInfo"></a>
717
717
 
@@ -741,7 +741,7 @@ fn gltfInfo {
741
741
  }
742
742
  ```
743
743
 
744
- <sub>`api.ogt` line 3644</sub>
744
+ <sub>`api.ogt` line 3659</sub>
745
745
 
746
746
  <a id="fn-animation"></a>
747
747
 
@@ -774,7 +774,7 @@ fn animation {
774
774
  }
775
775
  ```
776
776
 
777
- <sub>`api.ogt` line 3651</sub>
777
+ <sub>`api.ogt` line 3666</sub>
778
778
 
779
779
  <a id="fn-rig"></a>
780
780
 
@@ -804,7 +804,7 @@ fn rig {
804
804
  }
805
805
  ```
806
806
 
807
- <sub>`api.ogt` line 3659</sub>
807
+ <sub>`api.ogt` line 3674</sub>
808
808
 
809
809
  <a id="fn-flipbook"></a>
810
810
 
@@ -834,7 +834,7 @@ fn flipbook {
834
834
  }
835
835
  ```
836
836
 
837
- <sub>`api.ogt` line 3666</sub>
837
+ <sub>`api.ogt` line 3681</sub>
838
838
 
839
839
  <a id="fn-tilemap"></a>
840
840
 
@@ -864,7 +864,7 @@ fn tilemap {
864
864
  }
865
865
  ```
866
866
 
867
- <sub>`api.ogt` line 3673</sub>
867
+ <sub>`api.ogt` line 3688</sub>
868
868
 
869
869
  ## Components, resources and events
870
870
 
@@ -916,7 +916,7 @@ component Model {
916
916
  }
917
917
  ```
918
918
 
919
- <sub>`api.ogt` line 3467</sub>
919
+ <sub>`api.ogt` line 3482</sub>
920
920
 
921
921
  <a id="record-AssetReady"></a>
922
922
 
@@ -939,7 +939,7 @@ event AssetReady {
939
939
  }
940
940
  ```
941
941
 
942
- <sub>`api.ogt` line 3680</sub>
942
+ <sub>`api.ogt` line 3695</sub>
943
943
 
944
944
  <a id="record-AssetFailed"></a>
945
945
 
@@ -964,7 +964,7 @@ event AssetFailed {
964
964
  }
965
965
  ```
966
966
 
967
- <sub>`api.ogt` line 3686</sub>
967
+ <sub>`api.ogt` line 3701</sub>
968
968
 
969
969
  ## Types
970
970
 
@@ -980,7 +980,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
980
980
  handle Asset "A loaded bundle, scene or glTF asset."
981
981
  ```
982
982
 
983
- <sub>`api.ogt` line 3370</sub>
983
+ <sub>`api.ogt` line 3385</sub>
984
984
 
985
985
  <a id="type-Font"></a>
986
986
 
@@ -994,7 +994,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
994
994
  handle Font "A cooked MSDF font: its glyph table and one or more atlas pages."
995
995
  ```
996
996
 
997
- <sub>`api.ogt` line 3371</sub>
997
+ <sub>`api.ogt` line 3386</sub>
998
998
 
999
999
  <a id="type-Sound"></a>
1000
1000
 
@@ -1008,7 +1008,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
1008
1008
  handle Sound "A cooked sound: QOA-encoded PCM the audio module plays."
1009
1009
  ```
1010
1010
 
1011
- <sub>`api.ogt` line 3372</sub>
1011
+ <sub>`api.ogt` line 3387</sub>
1012
1012
 
1013
1013
  <a id="type-Skin"></a>
1014
1014
 
@@ -1022,7 +1022,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
1022
1022
  handle Skin "A cooked UI skin: its atlas, fonts, icons and sounds loaded with it, for og.ui.configure."
1023
1023
  ```
1024
1024
 
1025
- <sub>`api.ogt` line 3373</sub>
1025
+ <sub>`api.ogt` line 3388</sub>
1026
1026
 
1027
1027
  <a id="type-TextureArray"></a>
1028
1028
 
@@ -1036,7 +1036,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
1036
1036
  handle TextureArray "A cooked texture array: same-sized layers uploaded as one 2D-array texture (og.load.textureArray)."
1037
1037
  ```
1038
1038
 
1039
- <sub>`api.ogt` line 3374</sub>
1039
+ <sub>`api.ogt` line 3389</sub>
1040
1040
 
1041
1041
  <a id="type-LoadStatus"></a>
1042
1042
 
@@ -1061,7 +1061,7 @@ enum LoadStatus {
1061
1061
  }
1062
1062
  ```
1063
1063
 
1064
- <sub>`api.ogt` line 3397</sub>
1064
+ <sub>`api.ogt` line 3412</sub>
1065
1065
 
1066
1066
  <a id="type-GltfDesc"></a>
1067
1067
 
@@ -1091,7 +1091,7 @@ struct GltfDesc {
1091
1091
  }
1092
1092
  ```
1093
1093
 
1094
- <sub>`api.ogt` line 3404</sub>
1094
+ <sub>`api.ogt` line 3419</sub>
1095
1095
 
1096
1096
  <a id="type-GltfInfo"></a>
1097
1097
 
@@ -1116,7 +1116,7 @@ struct GltfInfo {
1116
1116
  }
1117
1117
  ```
1118
1118
 
1119
- <sub>`api.ogt` line 3416</sub>
1119
+ <sub>`api.ogt` line 3431</sub>
1120
1120
 
1121
1121
  <a id="type-BundleInfo"></a>
1122
1122
 
@@ -1139,7 +1139,7 @@ struct BundleInfo {
1139
1139
  }
1140
1140
  ```
1141
1141
 
1142
- <sub>`api.ogt` line 3424</sub>
1142
+ <sub>`api.ogt` line 3439</sub>
1143
1143
 
1144
1144
  <a id="type-FontInfo"></a>
1145
1145
 
@@ -1172,7 +1172,7 @@ struct FontInfo {
1172
1172
  }
1173
1173
  ```
1174
1174
 
1175
- <sub>`api.ogt` line 3431</sub>
1175
+ <sub>`api.ogt` line 3446</sub>
1176
1176
 
1177
1177
  <a id="type-SoundInfo"></a>
1178
1178
 
@@ -1203,7 +1203,7 @@ struct SoundInfo {
1203
1203
  }
1204
1204
  ```
1205
1205
 
1206
- <sub>`api.ogt` line 3443</sub>
1206
+ <sub>`api.ogt` line 3458</sub>
1207
1207
 
1208
1208
  <a id="type-TextureArrayInfo"></a>
1209
1209
 
@@ -1234,7 +1234,7 @@ struct TextureArrayInfo {
1234
1234
  }
1235
1235
  ```
1236
1236
 
1237
- <sub>`api.ogt` line 3456</sub>
1237
+ <sub>`api.ogt` line 3471</sub>
1238
1238
 
1239
1239
  ## Column kinds
1240
1240
 
@@ -1255,7 +1255,7 @@ column TextureArray {
1255
1255
  }
1256
1256
  ```
1257
1257
 
1258
- <sub>`api.ogt` line 3376</sub>
1258
+ <sub>`api.ogt` line 3391</sub>
1259
1259
 
1260
1260
  ```ogt
1261
1261
  column Asset {
@@ -1266,7 +1266,7 @@ column Asset {
1266
1266
  }
1267
1267
  ```
1268
1268
 
1269
- <sub>`api.ogt` line 3383</sub>
1269
+ <sub>`api.ogt` line 3398</sub>
1270
1270
 
1271
1271
  ```ogt
1272
1272
  column Sound {
@@ -1277,4 +1277,4 @@ column Sound {
1277
1277
  }
1278
1278
  ```
1279
1279
 
1280
- <sub>`api.ogt` line 3390</sub>
1280
+ <sub>`api.ogt` line 3405</sub>
@@ -14,7 +14,7 @@ module math {
14
14
  # declarations follow, each quoted below
15
15
  ```
16
16
 
17
- <sub>`api.ogt` line 35</sub>
17
+ <sub>`api.ogt` line 36</sub>
18
18
 
19
19
  ## Contents
20
20
 
@@ -48,7 +48,7 @@ struct Vector2 {
48
48
  }
49
49
  ```
50
50
 
51
- <sub>`api.ogt` line 40</sub>
51
+ <sub>`api.ogt` line 41</sub>
52
52
 
53
53
  <a id="type-Vector3"></a>
54
54
 
@@ -71,7 +71,7 @@ struct Vector3 {
71
71
  }
72
72
  ```
73
73
 
74
- <sub>`api.ogt` line 46</sub>
74
+ <sub>`api.ogt` line 47</sub>
75
75
 
76
76
  <a id="type-Quaternion"></a>
77
77
 
@@ -98,7 +98,7 @@ struct Quaternion {
98
98
  }
99
99
  ```
100
100
 
101
- <sub>`api.ogt` line 53</sub>
101
+ <sub>`api.ogt` line 54</sub>
102
102
 
103
103
  <a id="type-Matrix4"></a>
104
104
 
@@ -119,7 +119,7 @@ struct Matrix4 {
119
119
  }
120
120
  ```
121
121
 
122
- <sub>`api.ogt` line 63</sub>
122
+ <sub>`api.ogt` line 64</sub>
123
123
 
124
124
  <a id="type-Color"></a>
125
125
 
@@ -142,7 +142,7 @@ struct Color {
142
142
  }
143
143
  ```
144
144
 
145
- <sub>`api.ogt` line 70</sub>
145
+ <sub>`api.ogt` line 71</sub>
146
146
 
147
147
  <a id="type-Ray"></a>
148
148
 
@@ -163,4 +163,4 @@ struct Ray {
163
163
  }
164
164
  ```
165
165
 
166
- <sub>`api.ogt` line 77</sub>
166
+ <sub>`api.ogt` line 78</sub>