@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.
- package/dist/web/origin-engine.js +4 -4
- package/dist/web/origin-engine_bg.wasm +0 -0
- package/dist/web-publish/origin-engine-lanes.js +6 -6
- package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish/origin-engine.js +4 -4
- package/dist/web-publish/origin-engine_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine-lanes.js +6 -6
- package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine.js +4 -4
- package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
- package/knowledge/package.json +4 -4
- package/knowledge/scaffold/origin-engine.json +2 -2
- package/knowledge/scaffold/template/gitignore +8 -0
- package/knowledge/scaffold/template/package.json +1 -1
- package/knowledge/scaffold/template/project.ogt +1 -1
- package/knowledge/scripts/lib.ts +5 -1
- package/knowledge/scripts/pack.ts +2 -1
- package/knowledge/scripts/validate.ts +2 -1
- package/knowledge/skills/og-build/SKILL.md +17 -1
- package/knowledge/skills/og-feel/SKILL.md +8 -1
- package/knowledge/skills/og-game/SKILL.md +117 -13
- package/knowledge/skills/og-i18n/SKILL.md +12 -3
- package/knowledge/skills/og-platform-sdk/SKILL.md +3 -1
- package/knowledge/skills/og-ui/SKILL.md +19 -6
- package/knowledge/wiki/ai.md +20 -20
- package/knowledge/wiki/anim.md +41 -41
- package/knowledge/wiki/atmosphere.md +13 -13
- package/knowledge/wiki/audio.md +18 -18
- package/knowledge/wiki/camera.md +13 -13
- package/knowledge/wiki/commands.md +11 -11
- package/knowledge/wiki/game.md +8 -8
- package/knowledge/wiki/i18n.md +7 -7
- package/knowledge/wiki/index.md +4 -1
- package/knowledge/wiki/input.md +47 -47
- package/knowledge/wiki/load.md +45 -45
- package/knowledge/wiki/math.md +7 -7
- package/knowledge/wiki/nav.md +34 -34
- package/knowledge/wiki/physics.md +124 -106
- package/knowledge/wiki/platform.md +31 -31
- package/knowledge/wiki/probe.md +66 -66
- package/knowledge/wiki/reflect.md +15 -15
- package/knowledge/wiki/render.md +99 -89
- package/knowledge/wiki/rng.md +14 -14
- 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 +19 -15
- package/knowledge/wiki/time.md +4 -4
- package/knowledge/wiki/transform.md +8 -8
- package/knowledge/wiki/tween.md +17 -17
- package/knowledge/wiki/ui.md +289 -245
- package/knowledge/wiki/world.md +67 -37
- package/package.json +6 -6
- package/schema/api.schema.json +134 -9
- package/src/index.ts +1 -0
- package/src/node/polish.ts +2 -1
- package/src/node/run.ts +5 -1
- package/src/runtime.ts +2 -0
- package/src/ui-kit/huds.ts +18 -14
- package/types/bindings.json +61 -26
- package/types/index.d.ts +144 -13
|
@@ -18,7 +18,7 @@ module platform {
|
|
|
18
18
|
# declarations follow, each quoted below
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
<sub>`api.ogt` line
|
|
21
|
+
<sub>`api.ogt` line 7521</sub>
|
|
22
22
|
|
|
23
23
|
## Contents
|
|
24
24
|
|
|
@@ -83,7 +83,7 @@ fn storeGet {
|
|
|
83
83
|
}
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
<sub>`api.ogt` line
|
|
86
|
+
<sub>`api.ogt` line 7636</sub>
|
|
87
87
|
|
|
88
88
|
<a id="fn-storeSet"></a>
|
|
89
89
|
|
|
@@ -113,7 +113,7 @@ fn storeSet {
|
|
|
113
113
|
}
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
<sub>`api.ogt` line
|
|
116
|
+
<sub>`api.ogt` line 7643</sub>
|
|
117
117
|
|
|
118
118
|
<a id="fn-storeList"></a>
|
|
119
119
|
|
|
@@ -141,7 +141,7 @@ fn storeList {
|
|
|
141
141
|
}
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
<sub>`api.ogt` line
|
|
144
|
+
<sub>`api.ogt` line 7650</sub>
|
|
145
145
|
|
|
146
146
|
<a id="fn-leaderboardSubmit"></a>
|
|
147
147
|
|
|
@@ -171,7 +171,7 @@ fn leaderboardSubmit {
|
|
|
171
171
|
}
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
<sub>`api.ogt` line
|
|
174
|
+
<sub>`api.ogt` line 7656</sub>
|
|
175
175
|
|
|
176
176
|
<a id="fn-leaderboardTop"></a>
|
|
177
177
|
|
|
@@ -201,7 +201,7 @@ fn leaderboardTop {
|
|
|
201
201
|
}
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
<sub>`api.ogt` line
|
|
204
|
+
<sub>`api.ogt` line 7663</sub>
|
|
205
205
|
|
|
206
206
|
<a id="fn-leaderboardAround"></a>
|
|
207
207
|
|
|
@@ -231,7 +231,7 @@ fn leaderboardAround {
|
|
|
231
231
|
}
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
<sub>`api.ogt` line
|
|
234
|
+
<sub>`api.ogt` line 7670</sub>
|
|
235
235
|
|
|
236
236
|
<a id="fn-telemetry"></a>
|
|
237
237
|
|
|
@@ -265,7 +265,7 @@ fn telemetry {
|
|
|
265
265
|
}
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
<sub>`api.ogt` line
|
|
268
|
+
<sub>`api.ogt` line 7677</sub>
|
|
269
269
|
|
|
270
270
|
<a id="fn-point"></a>
|
|
271
271
|
|
|
@@ -295,7 +295,7 @@ fn point {
|
|
|
295
295
|
}
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
<sub>`api.ogt` line
|
|
298
|
+
<sub>`api.ogt` line 7687</sub>
|
|
299
299
|
|
|
300
300
|
<a id="fn-aiMark"></a>
|
|
301
301
|
|
|
@@ -325,7 +325,7 @@ fn aiMark {
|
|
|
325
325
|
}
|
|
326
326
|
```
|
|
327
327
|
|
|
328
|
-
<sub>`api.ogt` line
|
|
328
|
+
<sub>`api.ogt` line 7694</sub>
|
|
329
329
|
|
|
330
330
|
<a id="fn-loadSettings"></a>
|
|
331
331
|
|
|
@@ -353,7 +353,7 @@ fn loadSettings {
|
|
|
353
353
|
}
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
-
<sub>`api.ogt` line
|
|
356
|
+
<sub>`api.ogt` line 7701</sub>
|
|
357
357
|
|
|
358
358
|
<a id="fn-saveSettings"></a>
|
|
359
359
|
|
|
@@ -383,7 +383,7 @@ fn saveSettings {
|
|
|
383
383
|
}
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
<sub>`api.ogt` line
|
|
386
|
+
<sub>`api.ogt` line 7707</sub>
|
|
387
387
|
|
|
388
388
|
<a id="fn-saveSlot"></a>
|
|
389
389
|
|
|
@@ -413,7 +413,7 @@ fn saveSlot {
|
|
|
413
413
|
}
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
<sub>`api.ogt` line
|
|
416
|
+
<sub>`api.ogt` line 7714</sub>
|
|
417
417
|
|
|
418
418
|
<a id="fn-loadSlot"></a>
|
|
419
419
|
|
|
@@ -443,7 +443,7 @@ fn loadSlot {
|
|
|
443
443
|
}
|
|
444
444
|
```
|
|
445
445
|
|
|
446
|
-
<sub>`api.ogt` line
|
|
446
|
+
<sub>`api.ogt` line 7721</sub>
|
|
447
447
|
|
|
448
448
|
<a id="fn-result"></a>
|
|
449
449
|
|
|
@@ -473,7 +473,7 @@ fn result {
|
|
|
473
473
|
}
|
|
474
474
|
```
|
|
475
475
|
|
|
476
|
-
<sub>`api.ogt` line
|
|
476
|
+
<sub>`api.ogt` line 7728</sub>
|
|
477
477
|
|
|
478
478
|
<a id="fn-info"></a>
|
|
479
479
|
|
|
@@ -501,7 +501,7 @@ fn info {
|
|
|
501
501
|
}
|
|
502
502
|
```
|
|
503
503
|
|
|
504
|
-
<sub>`api.ogt` line
|
|
504
|
+
<sub>`api.ogt` line 7735</sub>
|
|
505
505
|
|
|
506
506
|
<a id="fn-now"></a>
|
|
507
507
|
|
|
@@ -529,7 +529,7 @@ fn now {
|
|
|
529
529
|
}
|
|
530
530
|
```
|
|
531
531
|
|
|
532
|
-
<sub>`api.ogt` line
|
|
532
|
+
<sub>`api.ogt` line 7741</sub>
|
|
533
533
|
|
|
534
534
|
## Components, resources and events
|
|
535
535
|
|
|
@@ -554,7 +554,7 @@ event PlatformAnswered {
|
|
|
554
554
|
}
|
|
555
555
|
```
|
|
556
556
|
|
|
557
|
-
<sub>`api.ogt` line
|
|
557
|
+
<sub>`api.ogt` line 7533</sub>
|
|
558
558
|
|
|
559
559
|
## Types
|
|
560
560
|
|
|
@@ -579,7 +579,7 @@ enum PlatformOrder {
|
|
|
579
579
|
}
|
|
580
580
|
```
|
|
581
581
|
|
|
582
|
-
<sub>`api.ogt` line
|
|
582
|
+
<sub>`api.ogt` line 7527</sub>
|
|
583
583
|
|
|
584
584
|
<a id="type-StoreSetDesc"></a>
|
|
585
585
|
|
|
@@ -607,7 +607,7 @@ struct StoreSetDesc {
|
|
|
607
607
|
}
|
|
608
608
|
```
|
|
609
609
|
|
|
610
|
-
<sub>`api.ogt` line
|
|
610
|
+
<sub>`api.ogt` line 7539</sub>
|
|
611
611
|
|
|
612
612
|
<a id="type-LeaderboardSubmitDesc"></a>
|
|
613
613
|
|
|
@@ -635,7 +635,7 @@ struct LeaderboardSubmitDesc {
|
|
|
635
635
|
}
|
|
636
636
|
```
|
|
637
637
|
|
|
638
|
-
<sub>`api.ogt` line
|
|
638
|
+
<sub>`api.ogt` line 7548</sub>
|
|
639
639
|
|
|
640
640
|
<a id="type-LeaderboardQueryDesc"></a>
|
|
641
641
|
|
|
@@ -665,7 +665,7 @@ struct LeaderboardQueryDesc {
|
|
|
665
665
|
}
|
|
666
666
|
```
|
|
667
667
|
|
|
668
|
-
<sub>`api.ogt` line
|
|
668
|
+
<sub>`api.ogt` line 7558</sub>
|
|
669
669
|
|
|
670
670
|
<a id="type-PointDesc"></a>
|
|
671
671
|
|
|
@@ -693,7 +693,7 @@ struct PointDesc {
|
|
|
693
693
|
}
|
|
694
694
|
```
|
|
695
695
|
|
|
696
|
-
<sub>`api.ogt` line
|
|
696
|
+
<sub>`api.ogt` line 7571</sub>
|
|
697
697
|
|
|
698
698
|
<a id="type-AiMarkDesc"></a>
|
|
699
699
|
|
|
@@ -719,7 +719,7 @@ struct AiMarkDesc {
|
|
|
719
719
|
}
|
|
720
720
|
```
|
|
721
721
|
|
|
722
|
-
<sub>`api.ogt` line
|
|
722
|
+
<sub>`api.ogt` line 7582</sub>
|
|
723
723
|
|
|
724
724
|
<a id="type-SaveSlotDesc"></a>
|
|
725
725
|
|
|
@@ -745,7 +745,7 @@ struct SaveSlotDesc {
|
|
|
745
745
|
}
|
|
746
746
|
```
|
|
747
747
|
|
|
748
|
-
<sub>`api.ogt` line
|
|
748
|
+
<sub>`api.ogt` line 7590</sub>
|
|
749
749
|
|
|
750
750
|
<a id="type-LoadSlotDesc"></a>
|
|
751
751
|
|
|
@@ -769,7 +769,7 @@ struct LoadSlotDesc {
|
|
|
769
769
|
}
|
|
770
770
|
```
|
|
771
771
|
|
|
772
|
-
<sub>`api.ogt` line
|
|
772
|
+
<sub>`api.ogt` line 7598</sub>
|
|
773
773
|
|
|
774
774
|
<a id="type-PlatformError"></a>
|
|
775
775
|
|
|
@@ -794,7 +794,7 @@ struct PlatformError {
|
|
|
794
794
|
}
|
|
795
795
|
```
|
|
796
796
|
|
|
797
|
-
<sub>`api.ogt` line
|
|
797
|
+
<sub>`api.ogt` line 7605</sub>
|
|
798
798
|
|
|
799
799
|
<a id="type-PlatformResult"></a>
|
|
800
800
|
|
|
@@ -810,7 +810,7 @@ The answer to one call.
|
|
|
810
810
|
| `data` | `unknown` | `null` | — | — | — | The answer (see each function); null on failure. |
|
|
811
811
|
| `error` | `PlatformError` | `{ code: "", message: "", retryable: false, revision: 0 }` | — | — | optional | Why it failed. |
|
|
812
812
|
| `tick` | `number` | `0` | — | — | — | The tick it was answered at. |
|
|
813
|
-
| `time` | `number` | `0` | — | `ms` | — | The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. |
|
|
813
|
+
| `time` | `number` | `0` | — | `ms` | — | The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. A slot call (saveSlot, loadSlot) answers the time of the store answer that ended it. |
|
|
814
814
|
|
|
815
815
|
```ogt
|
|
816
816
|
struct PlatformResult {
|
|
@@ -823,13 +823,13 @@ struct PlatformResult {
|
|
|
823
823
|
optional true
|
|
824
824
|
}
|
|
825
825
|
field tick u32 "The tick it was answered at."
|
|
826
|
-
field time f64 "The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none." {
|
|
826
|
+
field time f64 "The host's clock when it answered, UTC milliseconds since 1970 (PlatformInfo.clock says whose); 0 when the host gave none. A slot call (saveSlot, loadSlot) answers the time of the store answer that ended it." {
|
|
827
827
|
unit ms
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
```
|
|
831
831
|
|
|
832
|
-
<sub>`api.ogt` line
|
|
832
|
+
<sub>`api.ogt` line 7613</sub>
|
|
833
833
|
|
|
834
834
|
<a id="type-PlatformInfo"></a>
|
|
835
835
|
|
|
@@ -854,4 +854,4 @@ struct PlatformInfo {
|
|
|
854
854
|
}
|
|
855
855
|
```
|
|
856
856
|
|
|
857
|
-
<sub>`api.ogt` line
|
|
857
|
+
<sub>`api.ogt` line 7628</sub>
|