@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 platform {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 7489</sub>
21
+ <sub>`api.ogt` line 7521</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -83,7 +83,7 @@ fn storeGet {
83
83
  }
84
84
  ```
85
85
 
86
- <sub>`api.ogt` line 7604</sub>
86
+ <sub>`api.ogt` line 7636</sub>
87
87
 
88
88
  <a id="fn-storeSet"></a>
89
89
 
@@ -113,7 +113,7 @@ fn storeSet {
113
113
  }
114
114
  ```
115
115
 
116
- <sub>`api.ogt` line 7611</sub>
116
+ <sub>`api.ogt` line 7643</sub>
117
117
 
118
118
  <a id="fn-storeList"></a>
119
119
 
@@ -141,7 +141,7 @@ fn storeList {
141
141
  }
142
142
  ```
143
143
 
144
- <sub>`api.ogt` line 7618</sub>
144
+ <sub>`api.ogt` line 7650</sub>
145
145
 
146
146
  <a id="fn-leaderboardSubmit"></a>
147
147
 
@@ -171,7 +171,7 @@ fn leaderboardSubmit {
171
171
  }
172
172
  ```
173
173
 
174
- <sub>`api.ogt` line 7624</sub>
174
+ <sub>`api.ogt` line 7656</sub>
175
175
 
176
176
  <a id="fn-leaderboardTop"></a>
177
177
 
@@ -201,7 +201,7 @@ fn leaderboardTop {
201
201
  }
202
202
  ```
203
203
 
204
- <sub>`api.ogt` line 7631</sub>
204
+ <sub>`api.ogt` line 7663</sub>
205
205
 
206
206
  <a id="fn-leaderboardAround"></a>
207
207
 
@@ -231,7 +231,7 @@ fn leaderboardAround {
231
231
  }
232
232
  ```
233
233
 
234
- <sub>`api.ogt` line 7638</sub>
234
+ <sub>`api.ogt` line 7670</sub>
235
235
 
236
236
  <a id="fn-telemetry"></a>
237
237
 
@@ -265,7 +265,7 @@ fn telemetry {
265
265
  }
266
266
  ```
267
267
 
268
- <sub>`api.ogt` line 7645</sub>
268
+ <sub>`api.ogt` line 7677</sub>
269
269
 
270
270
  <a id="fn-point"></a>
271
271
 
@@ -295,7 +295,7 @@ fn point {
295
295
  }
296
296
  ```
297
297
 
298
- <sub>`api.ogt` line 7655</sub>
298
+ <sub>`api.ogt` line 7687</sub>
299
299
 
300
300
  <a id="fn-aiMark"></a>
301
301
 
@@ -325,7 +325,7 @@ fn aiMark {
325
325
  }
326
326
  ```
327
327
 
328
- <sub>`api.ogt` line 7662</sub>
328
+ <sub>`api.ogt` line 7694</sub>
329
329
 
330
330
  <a id="fn-loadSettings"></a>
331
331
 
@@ -353,7 +353,7 @@ fn loadSettings {
353
353
  }
354
354
  ```
355
355
 
356
- <sub>`api.ogt` line 7669</sub>
356
+ <sub>`api.ogt` line 7701</sub>
357
357
 
358
358
  <a id="fn-saveSettings"></a>
359
359
 
@@ -383,7 +383,7 @@ fn saveSettings {
383
383
  }
384
384
  ```
385
385
 
386
- <sub>`api.ogt` line 7675</sub>
386
+ <sub>`api.ogt` line 7707</sub>
387
387
 
388
388
  <a id="fn-saveSlot"></a>
389
389
 
@@ -413,7 +413,7 @@ fn saveSlot {
413
413
  }
414
414
  ```
415
415
 
416
- <sub>`api.ogt` line 7682</sub>
416
+ <sub>`api.ogt` line 7714</sub>
417
417
 
418
418
  <a id="fn-loadSlot"></a>
419
419
 
@@ -443,7 +443,7 @@ fn loadSlot {
443
443
  }
444
444
  ```
445
445
 
446
- <sub>`api.ogt` line 7689</sub>
446
+ <sub>`api.ogt` line 7721</sub>
447
447
 
448
448
  <a id="fn-result"></a>
449
449
 
@@ -473,7 +473,7 @@ fn result {
473
473
  }
474
474
  ```
475
475
 
476
- <sub>`api.ogt` line 7696</sub>
476
+ <sub>`api.ogt` line 7728</sub>
477
477
 
478
478
  <a id="fn-info"></a>
479
479
 
@@ -501,7 +501,7 @@ fn info {
501
501
  }
502
502
  ```
503
503
 
504
- <sub>`api.ogt` line 7703</sub>
504
+ <sub>`api.ogt` line 7735</sub>
505
505
 
506
506
  <a id="fn-now"></a>
507
507
 
@@ -529,7 +529,7 @@ fn now {
529
529
  }
530
530
  ```
531
531
 
532
- <sub>`api.ogt` line 7709</sub>
532
+ <sub>`api.ogt` line 7741</sub>
533
533
 
534
534
  ## Components, resources and events
535
535
 
@@ -554,7 +554,7 @@ event PlatformAnswered {
554
554
  }
555
555
  ```
556
556
 
557
- <sub>`api.ogt` line 7501</sub>
557
+ <sub>`api.ogt` line 7533</sub>
558
558
 
559
559
  ## Types
560
560
 
@@ -579,7 +579,7 @@ enum PlatformOrder {
579
579
  }
580
580
  ```
581
581
 
582
- <sub>`api.ogt` line 7495</sub>
582
+ <sub>`api.ogt` line 7527</sub>
583
583
 
584
584
  <a id="type-StoreSetDesc"></a>
585
585
 
@@ -607,7 +607,7 @@ struct StoreSetDesc {
607
607
  }
608
608
  ```
609
609
 
610
- <sub>`api.ogt` line 7507</sub>
610
+ <sub>`api.ogt` line 7539</sub>
611
611
 
612
612
  <a id="type-LeaderboardSubmitDesc"></a>
613
613
 
@@ -635,7 +635,7 @@ struct LeaderboardSubmitDesc {
635
635
  }
636
636
  ```
637
637
 
638
- <sub>`api.ogt` line 7516</sub>
638
+ <sub>`api.ogt` line 7548</sub>
639
639
 
640
640
  <a id="type-LeaderboardQueryDesc"></a>
641
641
 
@@ -665,7 +665,7 @@ struct LeaderboardQueryDesc {
665
665
  }
666
666
  ```
667
667
 
668
- <sub>`api.ogt` line 7526</sub>
668
+ <sub>`api.ogt` line 7558</sub>
669
669
 
670
670
  <a id="type-PointDesc"></a>
671
671
 
@@ -693,7 +693,7 @@ struct PointDesc {
693
693
  }
694
694
  ```
695
695
 
696
- <sub>`api.ogt` line 7539</sub>
696
+ <sub>`api.ogt` line 7571</sub>
697
697
 
698
698
  <a id="type-AiMarkDesc"></a>
699
699
 
@@ -719,7 +719,7 @@ struct AiMarkDesc {
719
719
  }
720
720
  ```
721
721
 
722
- <sub>`api.ogt` line 7550</sub>
722
+ <sub>`api.ogt` line 7582</sub>
723
723
 
724
724
  <a id="type-SaveSlotDesc"></a>
725
725
 
@@ -745,7 +745,7 @@ struct SaveSlotDesc {
745
745
  }
746
746
  ```
747
747
 
748
- <sub>`api.ogt` line 7558</sub>
748
+ <sub>`api.ogt` line 7590</sub>
749
749
 
750
750
  <a id="type-LoadSlotDesc"></a>
751
751
 
@@ -769,7 +769,7 @@ struct LoadSlotDesc {
769
769
  }
770
770
  ```
771
771
 
772
- <sub>`api.ogt` line 7566</sub>
772
+ <sub>`api.ogt` line 7598</sub>
773
773
 
774
774
  <a id="type-PlatformError"></a>
775
775
 
@@ -794,7 +794,7 @@ struct PlatformError {
794
794
  }
795
795
  ```
796
796
 
797
- <sub>`api.ogt` line 7573</sub>
797
+ <sub>`api.ogt` line 7605</sub>
798
798
 
799
799
  <a id="type-PlatformResult"></a>
800
800
 
@@ -810,7 +810,7 @@ The answer to one call.
810
810
  | `data` | `unknown` | `null` | — | — | — | The answer (see each function); null on failure. |
811
811
  | `error` | `PlatformError` | `{ code: "", message: "", retryable: false, revision: 0 }` | — | — | optional | Why it failed. |
812
812
  | `tick` | `number` | `0` | — | — | — | The tick it was answered at. |
813
- | `time` | `number` | `0` | — | `ms` | — | The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. |
813
+ | `time` | `number` | `0` | — | `ms` | — | The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. A slot call (saveSlot, loadSlot) answers the time of the store answer that ended it. |
814
814
 
815
815
  ```ogt
816
816
  struct PlatformResult {
@@ -823,13 +823,13 @@ struct PlatformResult {
823
823
  optional true
824
824
  }
825
825
  field tick u32 "The tick it was answered at."
826
- field time f64 "The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none." {
826
+ field time f64 "The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. A slot call (saveSlot, loadSlot) answers the time of the store answer that ended it." {
827
827
  unit ms
828
828
  }
829
829
  }
830
830
  ```
831
831
 
832
- <sub>`api.ogt` line 7581</sub>
832
+ <sub>`api.ogt` line 7613</sub>
833
833
 
834
834
  <a id="type-PlatformInfo"></a>
835
835
 
@@ -854,4 +854,4 @@ struct PlatformInfo {
854
854
  }
855
855
  ```
856
856
 
857
- <sub>`api.ogt` line 7596</sub>
857
+ <sub>`api.ogt` line 7628</sub>