@origingame/engine 0.3.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 (92) hide show
  1. package/dist/web/origin-engine.d.ts +44 -5
  2. package/dist/web/origin-engine.js +279 -19
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +18 -5
  5. package/dist/web-publish/origin-engine-lanes.js +289 -48
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +44 -5
  8. package/dist/web-publish/origin-engine.js +279 -38
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +18 -5
  11. package/dist/web-publish-2d/origin-engine-lanes.js +289 -48
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +44 -5
  14. package/dist/web-publish-2d/origin-engine.js +279 -38
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +18 -5
  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/looks/catalogue.json +123 -2
  21. package/knowledge/package.json +3 -2
  22. package/knowledge/scaffold/origin-engine.json +2 -2
  23. package/knowledge/scaffold/template/package.json +1 -1
  24. package/knowledge/scaffold/template/project.ogt +1 -1
  25. package/knowledge/scripts/validate.ts +209 -27
  26. package/knowledge/skills/og-audio/SKILL.md +33 -7
  27. package/knowledge/skills/og-build/SKILL.md +66 -7
  28. package/knowledge/skills/og-core/SKILL.md +24 -8
  29. package/knowledge/skills/og-feel/SKILL.md +11 -3
  30. package/knowledge/skills/og-game/SKILL.md +680 -51
  31. package/knowledge/skills/og-i18n/SKILL.md +7 -7
  32. package/knowledge/skills/og-model/SKILL.md +374 -0
  33. package/knowledge/skills/og-platform-sdk/SKILL.md +7 -1
  34. package/knowledge/skills/og-taste/SKILL.md +7 -0
  35. package/knowledge/skills/og-ui/SKILL.md +39 -8
  36. package/knowledge/wiki/ai.md +20 -20
  37. package/knowledge/wiki/anim.md +537 -63
  38. package/knowledge/wiki/atmosphere.md +13 -13
  39. package/knowledge/wiki/audio.md +160 -20
  40. package/knowledge/wiki/camera.md +13 -13
  41. package/knowledge/wiki/commands.md +11 -11
  42. package/knowledge/wiki/debug.md +13 -13
  43. package/knowledge/wiki/game.md +8 -8
  44. package/knowledge/wiki/i18n.md +7 -7
  45. package/knowledge/wiki/index.md +81 -3
  46. package/knowledge/wiki/input.md +47 -47
  47. package/knowledge/wiki/load.md +83 -57
  48. package/knowledge/wiki/math.md +102 -102
  49. package/knowledge/wiki/nav.md +34 -34
  50. package/knowledge/wiki/net.md +10 -10
  51. package/knowledge/wiki/path.md +14 -14
  52. package/knowledge/wiki/physics.md +111 -100
  53. package/knowledge/wiki/platform.md +44 -44
  54. package/knowledge/wiki/probe.md +86 -86
  55. package/knowledge/wiki/reflect.md +30 -18
  56. package/knowledge/wiki/render.md +1243 -176
  57. package/knowledge/wiki/rng.md +14 -14
  58. package/knowledge/wiki/shapes.md +727 -0
  59. package/knowledge/wiki/stream.md +15 -15
  60. package/knowledge/wiki/system.md +8 -8
  61. package/knowledge/wiki/systems.md +2 -2
  62. package/knowledge/wiki/terrain.md +24 -20
  63. package/knowledge/wiki/tilemap.md +13 -13
  64. package/knowledge/wiki/time.md +4 -4
  65. package/knowledge/wiki/timeline.md +14 -14
  66. package/knowledge/wiki/transform.md +8 -8
  67. package/knowledge/wiki/tween.md +17 -17
  68. package/knowledge/wiki/ui.md +245 -269
  69. package/knowledge/wiki/video.md +5 -5
  70. package/knowledge/wiki/world.md +36 -36
  71. package/package.json +4 -4
  72. package/schema/api.schema.json +2238 -81
  73. package/shell/page.ts +4 -0
  74. package/shell/platform.ts +5 -0
  75. package/shell/player.ts +8 -2
  76. package/shell/transport.ts +6 -0
  77. package/src/generated/abi.ts +40 -1
  78. package/src/geom.ts +260 -0
  79. package/src/index.ts +19 -1
  80. package/src/node/device.ts +5 -2
  81. package/src/node/playtest-run.ts +1 -0
  82. package/src/node/polish.ts +34 -15
  83. package/src/node/run.ts +23 -6
  84. package/src/platform-local.ts +2 -0
  85. package/src/playtest.ts +8 -0
  86. package/src/runtime.ts +88 -6
  87. package/src/ui-kit/settings.ts +9 -0
  88. package/src/web/gl-state.ts +907 -0
  89. package/src/web/shell.ts +1 -1
  90. package/src/web/worker.ts +8 -2
  91. package/types/bindings.json +1222 -453
  92. package/types/index.d.ts +1868 -315
@@ -18,7 +18,7 @@ module ai {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 8923</sub>
21
+ <sub>`api.ogt` line 9869</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 9095</sub>
77
+ <sub>`api.ogt` line 10041</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 9102</sub>
107
+ <sub>`api.ogt` line 10048</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 9109</sub>
139
+ <sub>`api.ogt` line 10055</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 9117</sub>
173
+ <sub>`api.ogt` line 10063</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 9126</sub>
203
+ <sub>`api.ogt` line 10072</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 9133</sub>
233
+ <sub>`api.ogt` line 10079</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 9140</sub>
263
+ <sub>`api.ogt` line 10086</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 8942</sub>
313
+ <sub>`api.ogt` line 9888</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 8968</sub>
414
+ <sub>`api.ogt` line 9914</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 9038</sub>
443
+ <sub>`api.ogt` line 9984</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 9050</sub>
470
+ <sub>`api.ogt` line 9996</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 8929</sub>
486
+ <sub>`api.ogt` line 9875</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 9058</sub>
515
+ <sub>`api.ogt` line 10004</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 9068</sub>
547
+ <sub>`api.ogt` line 10014</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 9082</sub>
582
+ <sub>`api.ogt` line 10028</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 8931</sub>
601
+ <sub>`api.ogt` line 9877</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 8938</sub>
615
+ <sub>`api.ogt` line 9884</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 8939</sub>
621
+ <sub>`api.ogt` line 9885</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 8940</sub>
627
+ <sub>`api.ogt` line 9886</sub>