@origingame/engine 0.3.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 (84) hide show
  1. package/dist/web/origin-engine.d.ts +38 -2
  2. package/dist/web/origin-engine.js +250 -10
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +14 -2
  5. package/dist/web-publish/origin-engine-lanes.js +255 -34
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +39 -3
  8. package/dist/web-publish/origin-engine.js +253 -32
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +15 -3
  11. package/dist/web-publish-2d/origin-engine-lanes.js +253 -32
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +38 -2
  14. package/dist/web-publish-2d/origin-engine.js +250 -29
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +14 -2
  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/package.json +3 -2
  21. package/knowledge/scaffold/origin-engine.json +2 -2
  22. package/knowledge/scaffold/template/package.json +1 -1
  23. package/knowledge/scaffold/template/project.ogt +1 -1
  24. package/knowledge/scripts/validate.ts +140 -21
  25. package/knowledge/skills/og-audio/SKILL.md +2 -2
  26. package/knowledge/skills/og-build/SKILL.md +22 -3
  27. package/knowledge/skills/og-core/SKILL.md +20 -5
  28. package/knowledge/skills/og-feel/SKILL.md +2 -2
  29. package/knowledge/skills/og-game/SKILL.md +481 -35
  30. package/knowledge/skills/og-i18n/SKILL.md +7 -7
  31. package/knowledge/skills/og-model/SKILL.md +374 -0
  32. package/knowledge/skills/og-platform-sdk/SKILL.md +1 -1
  33. package/knowledge/skills/og-ui/SKILL.md +15 -8
  34. package/knowledge/wiki/ai.md +20 -20
  35. package/knowledge/wiki/anim.md +63 -55
  36. package/knowledge/wiki/atmosphere.md +13 -13
  37. package/knowledge/wiki/audio.md +18 -18
  38. package/knowledge/wiki/camera.md +13 -13
  39. package/knowledge/wiki/commands.md +11 -11
  40. package/knowledge/wiki/debug.md +13 -13
  41. package/knowledge/wiki/game.md +8 -8
  42. package/knowledge/wiki/i18n.md +7 -7
  43. package/knowledge/wiki/index.md +57 -3
  44. package/knowledge/wiki/input.md +47 -47
  45. package/knowledge/wiki/load.md +57 -57
  46. package/knowledge/wiki/nav.md +34 -34
  47. package/knowledge/wiki/net.md +10 -10
  48. package/knowledge/wiki/path.md +14 -14
  49. package/knowledge/wiki/physics.md +95 -95
  50. package/knowledge/wiki/platform.md +44 -44
  51. package/knowledge/wiki/probe.md +86 -86
  52. package/knowledge/wiki/reflect.md +16 -4
  53. package/knowledge/wiki/render.md +1168 -170
  54. package/knowledge/wiki/rng.md +14 -14
  55. package/knowledge/wiki/shapes.md +727 -0
  56. package/knowledge/wiki/stream.md +15 -15
  57. package/knowledge/wiki/system.md +8 -8
  58. package/knowledge/wiki/systems.md +2 -2
  59. package/knowledge/wiki/terrain.md +24 -20
  60. package/knowledge/wiki/tilemap.md +13 -13
  61. package/knowledge/wiki/time.md +4 -4
  62. package/knowledge/wiki/timeline.md +14 -14
  63. package/knowledge/wiki/transform.md +8 -8
  64. package/knowledge/wiki/tween.md +17 -17
  65. package/knowledge/wiki/ui.md +245 -269
  66. package/knowledge/wiki/video.md +5 -5
  67. package/knowledge/wiki/world.md +36 -36
  68. package/package.json +4 -4
  69. package/schema/api.schema.json +1834 -305
  70. package/shell/platform.ts +5 -0
  71. package/shell/player.ts +8 -2
  72. package/shell/transport.ts +6 -0
  73. package/src/generated/abi.ts +37 -1
  74. package/src/geom.ts +260 -0
  75. package/src/index.ts +8 -1
  76. package/src/node/playtest-run.ts +1 -0
  77. package/src/platform-local.ts +2 -0
  78. package/src/playtest.ts +8 -0
  79. package/src/runtime.ts +87 -6
  80. package/src/ui-kit/settings.ts +9 -0
  81. package/src/web/shell.ts +1 -1
  82. package/src/web/worker.ts +2 -2
  83. package/types/bindings.json +697 -402
  84. package/types/index.d.ts +1045 -127
@@ -20,7 +20,7 @@ module platform {
20
20
  # declarations follow, each quoted below
21
21
  ```
22
22
 
23
- <sub>`api.ogt` line 9150</sub>
23
+ <sub>`api.ogt` line 9723</sub>
24
24
 
25
25
  ## Contents
26
26
 
@@ -100,7 +100,7 @@ fn storeGet {
100
100
  }
101
101
  ```
102
102
 
103
- <sub>`api.ogt` line 9266</sub>
103
+ <sub>`api.ogt` line 9839</sub>
104
104
 
105
105
  <a id="fn-storeSet"></a>
106
106
 
@@ -130,7 +130,7 @@ fn storeSet {
130
130
  }
131
131
  ```
132
132
 
133
- <sub>`api.ogt` line 9273</sub>
133
+ <sub>`api.ogt` line 9846</sub>
134
134
 
135
135
  <a id="fn-storeList"></a>
136
136
 
@@ -158,7 +158,7 @@ fn storeList {
158
158
  }
159
159
  ```
160
160
 
161
- <sub>`api.ogt` line 9280</sub>
161
+ <sub>`api.ogt` line 9853</sub>
162
162
 
163
163
  <a id="fn-leaderboardSubmit"></a>
164
164
 
@@ -188,7 +188,7 @@ fn leaderboardSubmit {
188
188
  }
189
189
  ```
190
190
 
191
- <sub>`api.ogt` line 9286</sub>
191
+ <sub>`api.ogt` line 9859</sub>
192
192
 
193
193
  <a id="fn-leaderboardTop"></a>
194
194
 
@@ -218,7 +218,7 @@ fn leaderboardTop {
218
218
  }
219
219
  ```
220
220
 
221
- <sub>`api.ogt` line 9293</sub>
221
+ <sub>`api.ogt` line 9866</sub>
222
222
 
223
223
  <a id="fn-leaderboardAround"></a>
224
224
 
@@ -248,7 +248,7 @@ fn leaderboardAround {
248
248
  }
249
249
  ```
250
250
 
251
- <sub>`api.ogt` line 9300</sub>
251
+ <sub>`api.ogt` line 9873</sub>
252
252
 
253
253
  <a id="fn-telemetry"></a>
254
254
 
@@ -282,7 +282,7 @@ fn telemetry {
282
282
  }
283
283
  ```
284
284
 
285
- <sub>`api.ogt` line 9307</sub>
285
+ <sub>`api.ogt` line 9880</sub>
286
286
 
287
287
  <a id="fn-point"></a>
288
288
 
@@ -312,7 +312,7 @@ fn point {
312
312
  }
313
313
  ```
314
314
 
315
- <sub>`api.ogt` line 9317</sub>
315
+ <sub>`api.ogt` line 9890</sub>
316
316
 
317
317
  <a id="fn-aiMark"></a>
318
318
 
@@ -342,7 +342,7 @@ fn aiMark {
342
342
  }
343
343
  ```
344
344
 
345
- <sub>`api.ogt` line 9324</sub>
345
+ <sub>`api.ogt` line 9897</sub>
346
346
 
347
347
  <a id="fn-loadSettings"></a>
348
348
 
@@ -370,7 +370,7 @@ fn loadSettings {
370
370
  }
371
371
  ```
372
372
 
373
- <sub>`api.ogt` line 9331</sub>
373
+ <sub>`api.ogt` line 9904</sub>
374
374
 
375
375
  <a id="fn-saveSettings"></a>
376
376
 
@@ -400,7 +400,7 @@ fn saveSettings {
400
400
  }
401
401
  ```
402
402
 
403
- <sub>`api.ogt` line 9337</sub>
403
+ <sub>`api.ogt` line 9910</sub>
404
404
 
405
405
  <a id="fn-saveSlot"></a>
406
406
 
@@ -430,7 +430,7 @@ fn saveSlot {
430
430
  }
431
431
  ```
432
432
 
433
- <sub>`api.ogt` line 9344</sub>
433
+ <sub>`api.ogt` line 9917</sub>
434
434
 
435
435
  <a id="fn-loadSlot"></a>
436
436
 
@@ -460,7 +460,7 @@ fn loadSlot {
460
460
  }
461
461
  ```
462
462
 
463
- <sub>`api.ogt` line 9351</sub>
463
+ <sub>`api.ogt` line 9924</sub>
464
464
 
465
465
  <a id="fn-result"></a>
466
466
 
@@ -490,7 +490,7 @@ fn result {
490
490
  }
491
491
  ```
492
492
 
493
- <sub>`api.ogt` line 9358</sub>
493
+ <sub>`api.ogt` line 9931</sub>
494
494
 
495
495
  <a id="fn-info"></a>
496
496
 
@@ -518,7 +518,7 @@ fn info {
518
518
  }
519
519
  ```
520
520
 
521
- <sub>`api.ogt` line 9365</sub>
521
+ <sub>`api.ogt` line 9938</sub>
522
522
 
523
523
  <a id="fn-now"></a>
524
524
 
@@ -546,7 +546,7 @@ fn now {
546
546
  }
547
547
  ```
548
548
 
549
- <sub>`api.ogt` line 9371</sub>
549
+ <sub>`api.ogt` line 9944</sub>
550
550
 
551
551
  <a id="fn-roomCreate"></a>
552
552
 
@@ -578,7 +578,7 @@ fn roomCreate {
578
578
  }
579
579
  ```
580
580
 
581
- <sub>`api.ogt` line 9444</sub>
581
+ <sub>`api.ogt` line 10017</sub>
582
582
 
583
583
  <a id="fn-roomJoin"></a>
584
584
 
@@ -608,7 +608,7 @@ fn roomJoin {
608
608
  }
609
609
  ```
610
610
 
611
- <sub>`api.ogt` line 9453</sub>
611
+ <sub>`api.ogt` line 10026</sub>
612
612
 
613
613
  <a id="fn-roomLeave"></a>
614
614
 
@@ -636,7 +636,7 @@ fn roomLeave {
636
636
  }
637
637
  ```
638
638
 
639
- <sub>`api.ogt` line 9460</sub>
639
+ <sub>`api.ogt` line 10033</sub>
640
640
 
641
641
  <a id="fn-roomSend"></a>
642
642
 
@@ -670,7 +670,7 @@ fn roomSend {
670
670
  }
671
671
  ```
672
672
 
673
- <sub>`api.ogt` line 9466</sub>
673
+ <sub>`api.ogt` line 10039</sub>
674
674
 
675
675
  <a id="fn-roomPeers"></a>
676
676
 
@@ -698,7 +698,7 @@ fn roomPeers {
698
698
  }
699
699
  ```
700
700
 
701
- <sub>`api.ogt` line 9476</sub>
701
+ <sub>`api.ogt` line 10049</sub>
702
702
 
703
703
  <a id="fn-roomInfo"></a>
704
704
 
@@ -726,7 +726,7 @@ fn roomInfo {
726
726
  }
727
727
  ```
728
728
 
729
- <sub>`api.ogt` line 9482</sub>
729
+ <sub>`api.ogt` line 10055</sub>
730
730
 
731
731
  <a id="fn-roomMessage"></a>
732
732
 
@@ -756,7 +756,7 @@ fn roomMessage {
756
756
  }
757
757
  ```
758
758
 
759
- <sub>`api.ogt` line 9488</sub>
759
+ <sub>`api.ogt` line 10061</sub>
760
760
 
761
761
  ## Components, resources and events
762
762
 
@@ -781,7 +781,7 @@ event PlatformAnswered {
781
781
  }
782
782
  ```
783
783
 
784
- <sub>`api.ogt` line 9163</sub>
784
+ <sub>`api.ogt` line 9736</sub>
785
785
 
786
786
  <a id="record-RoomJoined"></a>
787
787
 
@@ -810,7 +810,7 @@ event RoomJoined {
810
810
  }
811
811
  ```
812
812
 
813
- <sub>`api.ogt` line 9416</sub>
813
+ <sub>`api.ogt` line 9989</sub>
814
814
 
815
815
  <a id="record-RoomPeerJoined"></a>
816
816
 
@@ -833,7 +833,7 @@ event RoomPeerJoined {
833
833
  }
834
834
  ```
835
835
 
836
- <sub>`api.ogt` line 9425</sub>
836
+ <sub>`api.ogt` line 9998</sub>
837
837
 
838
838
  <a id="record-RoomPeerLeft"></a>
839
839
 
@@ -856,7 +856,7 @@ event RoomPeerLeft {
856
856
  }
857
857
  ```
858
858
 
859
- <sub>`api.ogt` line 9431</sub>
859
+ <sub>`api.ogt` line 10004</sub>
860
860
 
861
861
  <a id="record-RoomMessage"></a>
862
862
 
@@ -881,7 +881,7 @@ event RoomMessage {
881
881
  }
882
882
  ```
883
883
 
884
- <sub>`api.ogt` line 9437</sub>
884
+ <sub>`api.ogt` line 10010</sub>
885
885
 
886
886
  ## Types
887
887
 
@@ -906,7 +906,7 @@ enum PlatformOrder {
906
906
  }
907
907
  ```
908
908
 
909
- <sub>`api.ogt` line 9157</sub>
909
+ <sub>`api.ogt` line 9730</sub>
910
910
 
911
911
  <a id="type-StoreSetDesc"></a>
912
912
 
@@ -934,7 +934,7 @@ struct StoreSetDesc {
934
934
  }
935
935
  ```
936
936
 
937
- <sub>`api.ogt` line 9169</sub>
937
+ <sub>`api.ogt` line 9742</sub>
938
938
 
939
939
  <a id="type-LeaderboardSubmitDesc"></a>
940
940
 
@@ -962,7 +962,7 @@ struct LeaderboardSubmitDesc {
962
962
  }
963
963
  ```
964
964
 
965
- <sub>`api.ogt` line 9178</sub>
965
+ <sub>`api.ogt` line 9751</sub>
966
966
 
967
967
  <a id="type-LeaderboardQueryDesc"></a>
968
968
 
@@ -992,7 +992,7 @@ struct LeaderboardQueryDesc {
992
992
  }
993
993
  ```
994
994
 
995
- <sub>`api.ogt` line 9188</sub>
995
+ <sub>`api.ogt` line 9761</sub>
996
996
 
997
997
  <a id="type-PointDesc"></a>
998
998
 
@@ -1020,7 +1020,7 @@ struct PointDesc {
1020
1020
  }
1021
1021
  ```
1022
1022
 
1023
- <sub>`api.ogt` line 9201</sub>
1023
+ <sub>`api.ogt` line 9774</sub>
1024
1024
 
1025
1025
  <a id="type-AiMarkDesc"></a>
1026
1026
 
@@ -1046,7 +1046,7 @@ struct AiMarkDesc {
1046
1046
  }
1047
1047
  ```
1048
1048
 
1049
- <sub>`api.ogt` line 9212</sub>
1049
+ <sub>`api.ogt` line 9785</sub>
1050
1050
 
1051
1051
  <a id="type-SaveSlotDesc"></a>
1052
1052
 
@@ -1072,7 +1072,7 @@ struct SaveSlotDesc {
1072
1072
  }
1073
1073
  ```
1074
1074
 
1075
- <sub>`api.ogt` line 9220</sub>
1075
+ <sub>`api.ogt` line 9793</sub>
1076
1076
 
1077
1077
  <a id="type-LoadSlotDesc"></a>
1078
1078
 
@@ -1096,7 +1096,7 @@ struct LoadSlotDesc {
1096
1096
  }
1097
1097
  ```
1098
1098
 
1099
- <sub>`api.ogt` line 9228</sub>
1099
+ <sub>`api.ogt` line 9801</sub>
1100
1100
 
1101
1101
  <a id="type-PlatformError"></a>
1102
1102
 
@@ -1121,7 +1121,7 @@ struct PlatformError {
1121
1121
  }
1122
1122
  ```
1123
1123
 
1124
- <sub>`api.ogt` line 9235</sub>
1124
+ <sub>`api.ogt` line 9808</sub>
1125
1125
 
1126
1126
  <a id="type-PlatformResult"></a>
1127
1127
 
@@ -1156,7 +1156,7 @@ struct PlatformResult {
1156
1156
  }
1157
1157
  ```
1158
1158
 
1159
- <sub>`api.ogt` line 9243</sub>
1159
+ <sub>`api.ogt` line 9816</sub>
1160
1160
 
1161
1161
  <a id="type-PlatformInfo"></a>
1162
1162
 
@@ -1181,7 +1181,7 @@ struct PlatformInfo {
1181
1181
  }
1182
1182
  ```
1183
1183
 
1184
- <sub>`api.ogt` line 9258</sub>
1184
+ <sub>`api.ogt` line 9831</sub>
1185
1185
 
1186
1186
  <a id="type-RoomDesc"></a>
1187
1187
 
@@ -1209,7 +1209,7 @@ struct RoomDesc {
1209
1209
  }
1210
1210
  ```
1211
1211
 
1212
- <sub>`api.ogt` line 9379</sub>
1212
+ <sub>`api.ogt` line 9952</sub>
1213
1213
 
1214
1214
  <a id="type-RoomPeer"></a>
1215
1215
 
@@ -1232,7 +1232,7 @@ struct RoomPeer {
1232
1232
  }
1233
1233
  ```
1234
1234
 
1235
- <sub>`api.ogt` line 9390</sub>
1235
+ <sub>`api.ogt` line 9963</sub>
1236
1236
 
1237
1237
  <a id="type-RoomInfo"></a>
1238
1238
 
@@ -1261,7 +1261,7 @@ struct RoomInfo {
1261
1261
  }
1262
1262
  ```
1263
1263
 
1264
- <sub>`api.ogt` line 9397</sub>
1264
+ <sub>`api.ogt` line 9970</sub>
1265
1265
 
1266
1266
  <a id="type-RoomMessageData"></a>
1267
1267
 
@@ -1288,4 +1288,4 @@ struct RoomMessageData {
1288
1288
  }
1289
1289
  ```
1290
1290
 
1291
- <sub>`api.ogt` line 9407</sub>
1291
+ <sub>`api.ogt` line 9980</sub>