@origingame/engine 0.4.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.
- package/dist/web/origin-engine.d.ts +8 -5
- package/dist/web/origin-engine.js +39 -19
- package/dist/web/origin-engine_bg.wasm +0 -0
- package/dist/web/origin-engine_bg.wasm.d.ts +6 -5
- package/dist/web-publish/origin-engine-lanes.js +49 -29
- package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish/origin-engine.d.ts +8 -5
- package/dist/web-publish/origin-engine.js +39 -19
- package/dist/web-publish/origin-engine_bg.wasm +0 -0
- package/dist/web-publish/origin-engine_bg.wasm.d.ts +6 -5
- package/dist/web-publish-2d/origin-engine-lanes.js +49 -29
- package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine.d.ts +8 -5
- package/dist/web-publish-2d/origin-engine.js +39 -19
- package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +6 -5
- package/knowledge/looks/catalogue.json +123 -2
- package/knowledge/package.json +1 -1
- package/knowledge/scaffold/origin-engine.json +2 -2
- package/knowledge/scaffold/template/package.json +1 -1
- package/knowledge/scaffold/template/project.ogt +1 -1
- package/knowledge/scripts/validate.ts +69 -6
- package/knowledge/skills/og-audio/SKILL.md +31 -5
- package/knowledge/skills/og-build/SKILL.md +44 -4
- package/knowledge/skills/og-core/SKILL.md +4 -3
- package/knowledge/skills/og-feel/SKILL.md +9 -1
- package/knowledge/skills/og-game/SKILL.md +199 -16
- package/knowledge/skills/og-platform-sdk/SKILL.md +6 -0
- package/knowledge/skills/og-taste/SKILL.md +7 -0
- package/knowledge/skills/og-ui/SKILL.md +24 -0
- package/knowledge/wiki/ai.md +20 -20
- package/knowledge/wiki/anim.md +526 -60
- package/knowledge/wiki/atmosphere.md +13 -13
- package/knowledge/wiki/audio.md +160 -20
- package/knowledge/wiki/camera.md +13 -13
- package/knowledge/wiki/commands.md +11 -11
- package/knowledge/wiki/debug.md +13 -13
- package/knowledge/wiki/game.md +8 -8
- package/knowledge/wiki/i18n.md +7 -7
- package/knowledge/wiki/index.md +25 -1
- package/knowledge/wiki/input.md +47 -47
- package/knowledge/wiki/load.md +76 -50
- package/knowledge/wiki/math.md +102 -102
- package/knowledge/wiki/nav.md +34 -34
- package/knowledge/wiki/net.md +10 -10
- package/knowledge/wiki/path.md +14 -14
- package/knowledge/wiki/physics.md +111 -100
- package/knowledge/wiki/platform.md +44 -44
- package/knowledge/wiki/probe.md +86 -86
- package/knowledge/wiki/reflect.md +17 -17
- package/knowledge/wiki/render.md +245 -176
- package/knowledge/wiki/rng.md +14 -14
- package/knowledge/wiki/shapes.md +26 -26
- package/knowledge/wiki/stream.md +15 -15
- package/knowledge/wiki/system.md +8 -8
- package/knowledge/wiki/systems.md +2 -2
- package/knowledge/wiki/terrain.md +19 -19
- package/knowledge/wiki/tilemap.md +13 -13
- package/knowledge/wiki/time.md +4 -4
- package/knowledge/wiki/timeline.md +14 -14
- package/knowledge/wiki/transform.md +8 -8
- package/knowledge/wiki/tween.md +17 -17
- package/knowledge/wiki/ui.md +243 -243
- package/knowledge/wiki/video.md +5 -5
- package/knowledge/wiki/world.md +36 -36
- package/package.json +4 -4
- package/schema/api.schema.json +639 -11
- package/shell/page.ts +4 -0
- package/src/generated/abi.ts +3 -0
- package/src/index.ts +11 -0
- package/src/node/device.ts +5 -2
- package/src/node/polish.ts +34 -15
- package/src/node/run.ts +23 -6
- package/src/runtime.ts +1 -0
- package/src/web/gl-state.ts +907 -0
- package/src/web/worker.ts +6 -0
- package/types/bindings.json +823 -349
- package/types/index.d.ts +650 -15
|
@@ -20,7 +20,7 @@ module platform {
|
|
|
20
20
|
# declarations follow, each quoted below
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
<sub>`api.ogt` line
|
|
23
|
+
<sub>`api.ogt` line 10096</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
|
|
103
|
+
<sub>`api.ogt` line 10212</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
|
|
133
|
+
<sub>`api.ogt` line 10219</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
|
|
161
|
+
<sub>`api.ogt` line 10226</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
|
|
191
|
+
<sub>`api.ogt` line 10232</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
|
|
221
|
+
<sub>`api.ogt` line 10239</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
|
|
251
|
+
<sub>`api.ogt` line 10246</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
|
|
285
|
+
<sub>`api.ogt` line 10253</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
|
|
315
|
+
<sub>`api.ogt` line 10263</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
|
|
345
|
+
<sub>`api.ogt` line 10270</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
|
|
373
|
+
<sub>`api.ogt` line 10277</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
|
|
403
|
+
<sub>`api.ogt` line 10283</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
|
|
433
|
+
<sub>`api.ogt` line 10290</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
|
|
463
|
+
<sub>`api.ogt` line 10297</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
|
|
493
|
+
<sub>`api.ogt` line 10304</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
|
|
521
|
+
<sub>`api.ogt` line 10311</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
|
|
549
|
+
<sub>`api.ogt` line 10317</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
|
|
581
|
+
<sub>`api.ogt` line 10390</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
|
|
611
|
+
<sub>`api.ogt` line 10399</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
|
|
639
|
+
<sub>`api.ogt` line 10406</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
|
|
673
|
+
<sub>`api.ogt` line 10412</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
|
|
701
|
+
<sub>`api.ogt` line 10422</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
|
|
729
|
+
<sub>`api.ogt` line 10428</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
|
|
759
|
+
<sub>`api.ogt` line 10434</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
|
|
784
|
+
<sub>`api.ogt` line 10109</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
|
|
813
|
+
<sub>`api.ogt` line 10362</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
|
|
836
|
+
<sub>`api.ogt` line 10371</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
|
|
859
|
+
<sub>`api.ogt` line 10377</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
|
|
884
|
+
<sub>`api.ogt` line 10383</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
|
|
909
|
+
<sub>`api.ogt` line 10103</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
|
|
937
|
+
<sub>`api.ogt` line 10115</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
|
|
965
|
+
<sub>`api.ogt` line 10124</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
|
|
995
|
+
<sub>`api.ogt` line 10134</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
|
|
1023
|
+
<sub>`api.ogt` line 10147</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
|
|
1049
|
+
<sub>`api.ogt` line 10158</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
|
|
1075
|
+
<sub>`api.ogt` line 10166</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
|
|
1099
|
+
<sub>`api.ogt` line 10174</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
|
|
1124
|
+
<sub>`api.ogt` line 10181</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
|
|
1159
|
+
<sub>`api.ogt` line 10189</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
|
|
1184
|
+
<sub>`api.ogt` line 10204</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
|
|
1212
|
+
<sub>`api.ogt` line 10325</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
|
|
1235
|
+
<sub>`api.ogt` line 10336</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
|
|
1264
|
+
<sub>`api.ogt` line 10343</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
|
|
1291
|
+
<sub>`api.ogt` line 10353</sub>
|