@origingame/engine 0.2.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 (118) hide show
  1. package/bin/og.mjs +1 -1
  2. package/dist/web/origin-engine.d.ts +255 -5
  3. package/dist/web/origin-engine.js +1584 -125
  4. package/dist/web/origin-engine_bg.wasm +0 -0
  5. package/dist/web/origin-engine_bg.wasm.d.ts +80 -3
  6. package/dist/web-publish/origin-engine-lanes.js +1288 -82
  7. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  8. package/dist/web-publish/origin-engine.d.ts +199 -6
  9. package/dist/web-publish/origin-engine.js +1285 -79
  10. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  11. package/dist/web-publish/origin-engine_bg.wasm.d.ts +65 -4
  12. package/dist/web-publish-2d/origin-engine-lanes.js +1285 -79
  13. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  14. package/dist/web-publish-2d/origin-engine.d.ts +198 -5
  15. package/dist/web-publish-2d/origin-engine.js +1282 -76
  16. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  17. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +64 -3
  18. package/knowledge/README.md +2 -1
  19. package/knowledge/guides/three-to-og.md +393 -0
  20. package/knowledge/knowledge.json +2 -1
  21. package/knowledge/looks/catalogue.json +40 -40
  22. package/knowledge/package.json +3 -2
  23. package/knowledge/scaffold/distribution.json +14 -0
  24. package/knowledge/scaffold/origin-engine.json +2 -2
  25. package/knowledge/scaffold/template/README.md +2 -1
  26. package/knowledge/scaffold/template/assets/audio/sting.ogt +10 -0
  27. package/knowledge/scaffold/template/assets/timelines/intro.ogt +101 -0
  28. package/knowledge/scaffold/template/assets/timelines/narration.srt +11 -0
  29. package/knowledge/scaffold/template/host.d.ts +46 -0
  30. package/knowledge/scaffold/template/package.json +1 -1
  31. package/knowledge/scaffold/template/project.ogt +1 -1
  32. package/knowledge/scaffold/template/src/main.ts +1 -1
  33. package/knowledge/scaffold/template/tests/frames.ts +134 -0
  34. package/knowledge/scaffold/template/tests/intro.og.ts +65 -0
  35. package/knowledge/scaffold/template/tests/smoke.og.ts +30 -36
  36. package/knowledge/scaffold/template/tsconfig.json +1 -1
  37. package/knowledge/scripts/mount.ts +2 -1
  38. package/knowledge/scripts/validate.ts +159 -31
  39. package/knowledge/skills/og-audio/SKILL.md +2 -2
  40. package/knowledge/skills/og-build/SKILL.md +29 -7
  41. package/knowledge/skills/og-core/SKILL.md +31 -5
  42. package/knowledge/skills/og-feel/SKILL.md +2 -2
  43. package/knowledge/skills/og-game/SKILL.md +1331 -16
  44. package/knowledge/skills/og-i18n/SKILL.md +7 -7
  45. package/knowledge/skills/og-model/SKILL.md +374 -0
  46. package/knowledge/skills/og-platform-sdk/SKILL.md +2 -1
  47. package/knowledge/skills/og-taste/SKILL.md +82 -73
  48. package/knowledge/skills/og-ui/SKILL.md +80 -58
  49. package/knowledge/wiki/ai.md +20 -20
  50. package/knowledge/wiki/anim.md +392 -41
  51. package/knowledge/wiki/atmosphere.md +36 -13
  52. package/knowledge/wiki/audio.md +18 -18
  53. package/knowledge/wiki/camera.md +19 -13
  54. package/knowledge/wiki/commands.md +19 -13
  55. package/knowledge/wiki/debug.md +414 -0
  56. package/knowledge/wiki/game.md +8 -8
  57. package/knowledge/wiki/i18n.md +7 -7
  58. package/knowledge/wiki/index.md +317 -8
  59. package/knowledge/wiki/input.md +47 -47
  60. package/knowledge/wiki/load.md +238 -70
  61. package/knowledge/wiki/math.md +2607 -0
  62. package/knowledge/wiki/nav.md +34 -34
  63. package/knowledge/wiki/net.md +340 -0
  64. package/knowledge/wiki/path.md +402 -0
  65. package/knowledge/wiki/physics.md +95 -95
  66. package/knowledge/wiki/platform.md +463 -29
  67. package/knowledge/wiki/probe.md +681 -67
  68. package/knowledge/wiki/reflect.md +29 -17
  69. package/knowledge/wiki/render.md +4993 -1998
  70. package/knowledge/wiki/rng.md +14 -14
  71. package/knowledge/wiki/shapes.md +727 -0
  72. package/knowledge/wiki/stream.md +15 -15
  73. package/knowledge/wiki/system.md +8 -8
  74. package/knowledge/wiki/systems.md +2 -2
  75. package/knowledge/wiki/terrain.md +24 -20
  76. package/knowledge/wiki/tilemap.md +13 -13
  77. package/knowledge/wiki/time.md +4 -4
  78. package/knowledge/wiki/timeline.md +396 -0
  79. package/knowledge/wiki/transform.md +8 -8
  80. package/knowledge/wiki/tween.md +17 -17
  81. package/knowledge/wiki/ui.md +560 -654
  82. package/knowledge/wiki/video.md +157 -0
  83. package/knowledge/wiki/world.md +36 -36
  84. package/package.json +4 -3
  85. package/schema/api.schema.json +28151 -19640
  86. package/shell/page.ts +26 -2
  87. package/shell/platform.ts +51 -0
  88. package/shell/player.ts +15 -2
  89. package/shell/transport.ts +6 -0
  90. package/src/depth.ts +71 -0
  91. package/src/e6.ts +32 -1
  92. package/src/env.d.ts +5 -1
  93. package/src/generated/abi.ts +226 -4
  94. package/src/geom.ts +260 -0
  95. package/src/index.ts +32 -4
  96. package/src/light.ts +18 -0
  97. package/src/math.ts +622 -0
  98. package/src/node/index.ts +17 -0
  99. package/src/node/playtest-run.ts +115 -18
  100. package/src/node/polish.ts +13 -3
  101. package/src/node/render.ts +291 -0
  102. package/src/node/run.ts +86 -5
  103. package/src/p2.ts +19 -1
  104. package/src/platform-local.ts +2 -0
  105. package/src/playtest.ts +65 -4
  106. package/src/runtime.ts +100 -9
  107. package/src/targets.ts +28 -0
  108. package/src/trace.ts +169 -0
  109. package/src/ui-kit/huds.ts +34 -34
  110. package/src/ui-kit/menus.ts +12 -12
  111. package/src/ui-kit/settings.ts +11 -2
  112. package/src/ui-kit/store.ts +18 -18
  113. package/src/ui-kit/story.ts +6 -4
  114. package/src/ui-kit/util.ts +8 -8
  115. package/src/web/shell.ts +59 -1
  116. package/src/web/worker.ts +105 -4
  117. package/types/bindings.json +9368 -6619
  118. package/types/index.d.ts +16377 -11520
@@ -18,7 +18,7 @@ module ai {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 7294</sub>
21
+ <sub>`api.ogt` line 9496</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -74,7 +74,7 @@ fn load {
74
74
  }
75
75
  ```
76
76
 
77
- <sub>`api.ogt` line 7466</sub>
77
+ <sub>`api.ogt` line 9668</sub>
78
78
 
79
79
  <a id="fn-parse"></a>
80
80
 
@@ -104,7 +104,7 @@ fn parse {
104
104
  }
105
105
  ```
106
106
 
107
- <sub>`api.ogt` line 7473</sub>
107
+ <sub>`api.ogt` line 9675</sub>
108
108
 
109
109
  <a id="fn-get"></a>
110
110
 
@@ -136,7 +136,7 @@ fn get {
136
136
  }
137
137
  ```
138
138
 
139
- <sub>`api.ogt` line 7480</sub>
139
+ <sub>`api.ogt` line 9682</sub>
140
140
 
141
141
  <a id="fn-set"></a>
142
142
 
@@ -170,7 +170,7 @@ fn set {
170
170
  }
171
171
  ```
172
172
 
173
- <sub>`api.ogt` line 7488</sub>
173
+ <sub>`api.ogt` line 9690</sub>
174
174
 
175
175
  <a id="fn-restart"></a>
176
176
 
@@ -200,7 +200,7 @@ fn restart {
200
200
  }
201
201
  ```
202
202
 
203
- <sub>`api.ogt` line 7497</sub>
203
+ <sub>`api.ogt` line 9699</sub>
204
204
 
205
205
  <a id="fn-noise"></a>
206
206
 
@@ -230,7 +230,7 @@ fn noise {
230
230
  }
231
231
  ```
232
232
 
233
- <sub>`api.ogt` line 7504</sub>
233
+ <sub>`api.ogt` line 9706</sub>
234
234
 
235
235
  <a id="fn-describe"></a>
236
236
 
@@ -260,7 +260,7 @@ fn describe {
260
260
  }
261
261
  ```
262
262
 
263
- <sub>`api.ogt` line 7511</sub>
263
+ <sub>`api.ogt` line 9713</sub>
264
264
 
265
265
  ## Components, resources and events
266
266
 
@@ -310,7 +310,7 @@ component AiAgent {
310
310
  }
311
311
  ```
312
312
 
313
- <sub>`api.ogt` line 7313</sub>
313
+ <sub>`api.ogt` line 9515</sub>
314
314
 
315
315
  <a id="record-Perception"></a>
316
316
 
@@ -411,7 +411,7 @@ component Perception {
411
411
  }
412
412
  ```
413
413
 
414
- <sub>`api.ogt` line 7339</sub>
414
+ <sub>`api.ogt` line 9541</sub>
415
415
 
416
416
  <a id="record-Perceivable"></a>
417
417
 
@@ -440,7 +440,7 @@ component Perceivable {
440
440
  }
441
441
  ```
442
442
 
443
- <sub>`api.ogt` line 7409</sub>
443
+ <sub>`api.ogt` line 9611</sub>
444
444
 
445
445
  <a id="record-AiChanged"></a>
446
446
 
@@ -467,7 +467,7 @@ event AiChanged {
467
467
  }
468
468
  ```
469
469
 
470
- <sub>`api.ogt` line 7421</sub>
470
+ <sub>`api.ogt` line 9623</sub>
471
471
 
472
472
  ## Types
473
473
 
@@ -483,7 +483,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
483
483
  handle Behaviour "A loaded behaviour tree or state machine."
484
484
  ```
485
485
 
486
- <sub>`api.ogt` line 7300</sub>
486
+ <sub>`api.ogt` line 9502</sub>
487
487
 
488
488
  <a id="type-BehaviourInfo"></a>
489
489
 
@@ -512,7 +512,7 @@ struct BehaviourInfo {
512
512
  }
513
513
  ```
514
514
 
515
- <sub>`api.ogt` line 7429</sub>
515
+ <sub>`api.ogt` line 9631</sub>
516
516
 
517
517
  <a id="type-NoiseDesc"></a>
518
518
 
@@ -544,7 +544,7 @@ struct NoiseDesc {
544
544
  }
545
545
  ```
546
546
 
547
- <sub>`api.ogt` line 7439</sub>
547
+ <sub>`api.ogt` line 9641</sub>
548
548
 
549
549
  <a id="type-AiDescription"></a>
550
550
 
@@ -579,7 +579,7 @@ struct AiDescription {
579
579
  }
580
580
  ```
581
581
 
582
- <sub>`api.ogt` line 7453</sub>
582
+ <sub>`api.ogt` line 9655</sub>
583
583
 
584
584
  ## Column kinds
585
585
 
@@ -598,7 +598,7 @@ column Behaviour {
598
598
  }
599
599
  ```
600
600
 
601
- <sub>`api.ogt` line 7302</sub>
601
+ <sub>`api.ogt` line 9504</sub>
602
602
 
603
603
  ## Constants
604
604
 
@@ -612,16 +612,16 @@ column Behaviour {
612
612
  const AI_RUNNING u32 1 "AiAgent.status: the tree or state is still running."
613
613
  ```
614
614
 
615
- <sub>`api.ogt` line 7309</sub>
615
+ <sub>`api.ogt` line 9511</sub>
616
616
 
617
617
  ```ogt
618
618
  const AI_SUCCESS u32 2 "AiAgent.status: the tree succeeded on the last think."
619
619
  ```
620
620
 
621
- <sub>`api.ogt` line 7310</sub>
621
+ <sub>`api.ogt` line 9512</sub>
622
622
 
623
623
  ```ogt
624
624
  const AI_FAILURE u32 3 "AiAgent.status: the tree failed on the last think."
625
625
  ```
626
626
 
627
- <sub>`api.ogt` line 7311</sub>
627
+ <sub>`api.ogt` line 9513</sub>