@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 nav {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 6798</sub>
21
+ <sub>`api.ogt` line 6830</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -88,7 +88,7 @@ fn grid {
88
88
  }
89
89
  ```
90
90
 
91
- <sub>`api.ogt` line 7154</sub>
91
+ <sub>`api.ogt` line 7186</sub>
92
92
 
93
93
  <a id="fn-gridFromTilemap"></a>
94
94
 
@@ -118,7 +118,7 @@ fn gridFromTilemap {
118
118
  }
119
119
  ```
120
120
 
121
- <sub>`api.ogt` line 7161</sub>
121
+ <sub>`api.ogt` line 7193</sub>
122
122
 
123
123
  <a id="fn-setCost"></a>
124
124
 
@@ -154,7 +154,7 @@ fn setCost {
154
154
  }
155
155
  ```
156
156
 
157
- <sub>`api.ogt` line 7168</sub>
157
+ <sub>`api.ogt` line 7200</sub>
158
158
 
159
159
  <a id="fn-cellAt"></a>
160
160
 
@@ -186,7 +186,7 @@ fn cellAt {
186
186
  }
187
187
  ```
188
188
 
189
- <sub>`api.ogt` line 7178</sub>
189
+ <sub>`api.ogt` line 7210</sub>
190
190
 
191
191
  <a id="fn-findPath"></a>
192
192
 
@@ -216,7 +216,7 @@ fn findPath {
216
216
  }
217
217
  ```
218
218
 
219
- <sub>`api.ogt` line 7186</sub>
219
+ <sub>`api.ogt` line 7218</sub>
220
220
 
221
221
  <a id="fn-flowField"></a>
222
222
 
@@ -246,7 +246,7 @@ fn flowField {
246
246
  }
247
247
  ```
248
248
 
249
- <sub>`api.ogt` line 7193</sub>
249
+ <sub>`api.ogt` line 7225</sub>
250
250
 
251
251
  <a id="fn-setFlowTargets"></a>
252
252
 
@@ -278,7 +278,7 @@ fn setFlowTargets {
278
278
  }
279
279
  ```
280
280
 
281
- <sub>`api.ogt` line 7200</sub>
281
+ <sub>`api.ogt` line 7232</sub>
282
282
 
283
283
  <a id="fn-flowAt"></a>
284
284
 
@@ -310,7 +310,7 @@ fn flowAt {
310
310
  }
311
311
  ```
312
312
 
313
- <sub>`api.ogt` line 7208</sub>
313
+ <sub>`api.ogt` line 7240</sub>
314
314
 
315
315
  <a id="fn-load"></a>
316
316
 
@@ -340,7 +340,7 @@ fn load {
340
340
  }
341
341
  ```
342
342
 
343
- <sub>`api.ogt` line 7216</sub>
343
+ <sub>`api.ogt` line 7248</sub>
344
344
 
345
345
  <a id="fn-build"></a>
346
346
 
@@ -370,7 +370,7 @@ fn build {
370
370
  }
371
371
  ```
372
372
 
373
- <sub>`api.ogt` line 7223</sub>
373
+ <sub>`api.ogt` line 7255</sub>
374
374
 
375
375
  <a id="fn-setObstacle"></a>
376
376
 
@@ -406,7 +406,7 @@ fn setObstacle {
406
406
  }
407
407
  ```
408
408
 
409
- <sub>`api.ogt` line 7230</sub>
409
+ <sub>`api.ogt` line 7262</sub>
410
410
 
411
411
  <a id="fn-nearest"></a>
412
412
 
@@ -442,7 +442,7 @@ fn nearest {
442
442
  }
443
443
  ```
444
444
 
445
- <sub>`api.ogt` line 7241</sub>
445
+ <sub>`api.ogt` line 7273</sub>
446
446
 
447
447
  <a id="fn-pathOf"></a>
448
448
 
@@ -472,7 +472,7 @@ fn pathOf {
472
472
  }
473
473
  ```
474
474
 
475
- <sub>`api.ogt` line 7252</sub>
475
+ <sub>`api.ogt` line 7284</sub>
476
476
 
477
477
  ## Components, resources and events
478
478
 
@@ -593,7 +593,7 @@ component NavAgent {
593
593
  }
594
594
  ```
595
595
 
596
- <sub>`api.ogt` line 6825</sub>
596
+ <sub>`api.ogt` line 6857</sub>
597
597
 
598
598
  <a id="record-Steering"></a>
599
599
 
@@ -720,7 +720,7 @@ component Steering {
720
720
  }
721
721
  ```
722
722
 
723
- <sub>`api.ogt` line 6910</sub>
723
+ <sub>`api.ogt` line 6942</sub>
724
724
 
725
725
  ## Types
726
726
 
@@ -736,7 +736,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
736
736
  handle Navigation "A grid, a navmesh or a flow field agents plan on."
737
737
  ```
738
738
 
739
- <sub>`api.ogt` line 6804</sub>
739
+ <sub>`api.ogt` line 6836</sub>
740
740
 
741
741
  <a id="type-NavAlgorithm"></a>
742
742
 
@@ -759,7 +759,7 @@ enum NavAlgorithm {
759
759
  }
760
760
  ```
761
761
 
762
- <sub>`api.ogt` line 6819</sub>
762
+ <sub>`api.ogt` line 6851</sub>
763
763
 
764
764
  <a id="type-NavGridDesc"></a>
765
765
 
@@ -804,7 +804,7 @@ struct NavGridDesc {
804
804
  }
805
805
  ```
806
806
 
807
- <sub>`api.ogt` line 7004</sub>
807
+ <sub>`api.ogt` line 7036</sub>
808
808
 
809
809
  <a id="type-TilemapGridDesc"></a>
810
810
 
@@ -832,7 +832,7 @@ struct TilemapGridDesc {
832
832
  }
833
833
  ```
834
834
 
835
- <sub>`api.ogt` line 7029</sub>
835
+ <sub>`api.ogt` line 7061</sub>
836
836
 
837
837
  <a id="type-NavCell"></a>
838
838
 
@@ -855,7 +855,7 @@ struct NavCell {
855
855
  }
856
856
  ```
857
857
 
858
- <sub>`api.ogt` line 7039</sub>
858
+ <sub>`api.ogt` line 7071</sub>
859
859
 
860
860
  <a id="type-PathDesc"></a>
861
861
 
@@ -897,7 +897,7 @@ struct PathDesc {
897
897
  }
898
898
  ```
899
899
 
900
- <sub>`api.ogt` line 7046</sub>
900
+ <sub>`api.ogt` line 7078</sub>
901
901
 
902
902
  <a id="type-NavPath"></a>
903
903
 
@@ -926,7 +926,7 @@ struct NavPath {
926
926
  }
927
927
  ```
928
928
 
929
- <sub>`api.ogt` line 7067</sub>
929
+ <sub>`api.ogt` line 7099</sub>
930
930
 
931
931
  <a id="type-FlowDesc"></a>
932
932
 
@@ -950,7 +950,7 @@ struct FlowDesc {
950
950
  }
951
951
  ```
952
952
 
953
- <sub>`api.ogt` line 7078</sub>
953
+ <sub>`api.ogt` line 7110</sub>
954
954
 
955
955
  <a id="type-NavBox"></a>
956
956
 
@@ -978,7 +978,7 @@ struct NavBox {
978
978
  }
979
979
  ```
980
980
 
981
- <sub>`api.ogt` line 7085</sub>
981
+ <sub>`api.ogt` line 7117</sub>
982
982
 
983
983
  <a id="type-NavMeshDesc"></a>
984
984
 
@@ -1036,7 +1036,7 @@ struct NavMeshDesc {
1036
1036
  }
1037
1037
  ```
1038
1038
 
1039
- <sub>`api.ogt` line 7096</sub>
1039
+ <sub>`api.ogt` line 7128</sub>
1040
1040
 
1041
1041
  <a id="type-NavMeshInfo"></a>
1042
1042
 
@@ -1071,7 +1071,7 @@ struct NavMeshInfo {
1071
1071
  }
1072
1072
  ```
1073
1073
 
1074
- <sub>`api.ogt` line 7132</sub>
1074
+ <sub>`api.ogt` line 7164</sub>
1075
1075
 
1076
1076
  <a id="type-NavRebuild"></a>
1077
1077
 
@@ -1092,7 +1092,7 @@ struct NavRebuild {
1092
1092
  }
1093
1093
  ```
1094
1094
 
1095
- <sub>`api.ogt` line 7148</sub>
1095
+ <sub>`api.ogt` line 7180</sub>
1096
1096
 
1097
1097
  ## Column kinds
1098
1098
 
@@ -1111,7 +1111,7 @@ column Navigation {
1111
1111
  }
1112
1112
  ```
1113
1113
 
1114
- <sub>`api.ogt` line 6806</sub>
1114
+ <sub>`api.ogt` line 6838</sub>
1115
1115
 
1116
1116
  ## Constants
1117
1117
 
@@ -1127,28 +1127,28 @@ column Navigation {
1127
1127
  const NAV_IDLE u32 0 "NavAgent.status: not seeking."
1128
1128
  ```
1129
1129
 
1130
- <sub>`api.ogt` line 6813</sub>
1130
+ <sub>`api.ogt` line 6845</sub>
1131
1131
 
1132
1132
  ```ogt
1133
1133
  const NAV_MOVING u32 1 "NavAgent.status: following a path or a flow field."
1134
1134
  ```
1135
1135
 
1136
- <sub>`api.ogt` line 6814</sub>
1136
+ <sub>`api.ogt` line 6846</sub>
1137
1137
 
1138
1138
  ```ogt
1139
1139
  const NAV_ARRIVED u32 2 "NavAgent.status: within stopDistance of the target."
1140
1140
  ```
1141
1141
 
1142
- <sub>`api.ogt` line 6815</sub>
1142
+ <sub>`api.ogt` line 6847</sub>
1143
1143
 
1144
1144
  ```ogt
1145
1145
  const NAV_UNREACHABLE u32 3 "NavAgent.status: no path reaches the target, or the agent is off its grid or navmesh."
1146
1146
  ```
1147
1147
 
1148
- <sub>`api.ogt` line 6816</sub>
1148
+ <sub>`api.ogt` line 6848</sub>
1149
1149
 
1150
1150
  ```ogt
1151
1151
  const NAV_PARTIAL u32 4 "NavAgent.status: the target is cut off; moving to the reachable point nearest it."
1152
1152
  ```
1153
1153
 
1154
- <sub>`api.ogt` line 6817</sub>
1154
+ <sub>`api.ogt` line 6849</sub>