@sandustry-modding/types 0.1.0 → 0.3.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/README.md +36 -12
- package/docs/Changelog.md +46 -0
- package/docs/README.md +62 -0
- package/package.json +11 -10
- package/src/sandkit/api/blueprints.d.ts +33 -0
- package/src/sandkit/api/effects.d.ts +127 -0
- package/src/sandkit/api/elements.d.ts +385 -0
- package/src/sandkit/api/entities.d.ts +79 -0
- package/src/sandkit/api/events.d.ts +137 -0
- package/src/sandkit/api/excavation.d.ts +58 -0
- package/src/sandkit/api/factory.d.ts +38 -0
- package/src/sandkit/api/fire.d.ts +33 -0
- package/src/sandkit/api/game.d.ts +22 -0
- package/src/sandkit/api/grid.d.ts +180 -0
- package/src/sandkit/api/hooks.d.ts +357 -0
- package/{sandkit → src/sandkit}/api/i18n.d.ts +80 -4
- package/{sandkit → src/sandkit}/api/index.d.ts +6 -0
- package/src/sandkit/api/lights.d.ts +101 -0
- package/{sandkit → src/sandkit}/api/maps.d.ts +15 -0
- package/src/sandkit/api/pickups.d.ts +89 -0
- package/src/sandkit/api/pipes.d.ts +54 -0
- package/src/sandkit/api/player.d.ts +141 -0
- package/{sandkit → src/sandkit}/api/rendering.d.ts +8 -0
- package/{sandkit → src/sandkit}/api/sandkit-api.d.ts +19 -2
- package/src/sandkit/api/shared.d.ts +41 -0
- package/{sandkit → src/sandkit}/api/sound.d.ts +32 -2
- package/{sandkit → src/sandkit}/api/structures.d.ts +171 -18
- package/{sandkit → src/sandkit}/api/tech.d.ts +54 -1
- package/src/sandkit/api/terrains.d.ts +147 -0
- package/{sandkit → src/sandkit}/api/upgrades.d.ts +9 -0
- package/{sandkit → src/sandkit}/api/utils.d.ts +19 -2
- package/src/sandkit/api/world.d.ts +105 -0
- package/{sandkit → src/sandkit}/enums/index.d.ts +14 -0
- package/{shared → src/shared}/api/elements.d.ts +84 -12
- package/{shared/api/world.d.ts → src/shared/api/grid.d.ts} +29 -3
- package/{shared → src/shared}/api/player.d.ts +12 -0
- package/{shared → src/shared}/api/shared.d.ts +5 -3
- package/{shared → src/shared}/api/structures.d.ts +46 -0
- package/src/shared/api/terrains.d.ts +231 -0
- package/src/shared/api/world.d.ts +43 -0
- package/{shared → src/shared}/index.d.ts +2 -0
- package/src/worker/api/effects.d.ts +52 -0
- package/src/worker/api/elements.d.ts +266 -0
- package/src/worker/api/events.d.ts +75 -0
- package/src/worker/api/fire.d.ts +29 -0
- package/src/worker/api/grid.d.ts +45 -0
- package/src/worker/api/hooks.d.ts +111 -0
- package/src/worker/api/lights.d.ts +43 -0
- package/{worker → src/worker}/api/shared.d.ts +8 -3
- package/{worker → src/worker}/index.d.ts +8 -5
- package/{worker → src/worker}/sandkit-api.d.ts +12 -3
- package/CHANGELOG.md +0 -19
- package/sandkit/api/effects.d.ts +0 -76
- package/sandkit/api/elements.d.ts +0 -237
- package/sandkit/api/events.d.ts +0 -53
- package/sandkit/api/excavation.d.ts +0 -34
- package/sandkit/api/fire.d.ts +0 -26
- package/sandkit/api/grid.d.ts +0 -26
- package/sandkit/api/hooks.d.ts +0 -52
- package/sandkit/api/lights.d.ts +0 -66
- package/sandkit/api/player.d.ts +0 -84
- package/sandkit/api/shared.d.ts +0 -27
- package/sandkit/api/terrains.d.ts +0 -125
- package/sandkit/api/world.d.ts +0 -107
- package/shared/api/terrains.d.ts +0 -100
- package/worker/api/elements.d.ts +0 -60
- /package/{global.d.ts → src/global.d.ts} +0 -0
- /package/{sandkit → src/sandkit}/api/action.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/assets.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/authorization.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/building.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/camera.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/collector.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/constants.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/cooldown.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/discoveries.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/energy.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/gameconfig.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/input.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/items.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/mods.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/patterns.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/processing.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/progression.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/projectiles.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/random.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/raycast.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/reactions.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/resources.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/scene.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/schedule.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/settings.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/signals.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/sprites.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/storage.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/structureBehaviors.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/time.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/tools.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/triggers.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/ui.d.ts +0 -0
- /package/{sandkit → src/sandkit}/api/workers.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/augments.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/auralite.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/blueprints.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/clipboard.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/colorPicker.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/coloringTool.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/conveyors.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/debug.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/drones.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/entities.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/extensions.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/factory.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/foliage.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/foundationColorPicker.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/game.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/heatTransfer.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/index.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/launchers.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/lightColorPicker.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/matters.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/misc.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/portals.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/prefabData.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/prefabDecor.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/prefabulator.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/prismaline.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/prismite.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/queue.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/shadows.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/strataform.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/swarmConsole.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/sweeperDrone.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/teleportZones.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/tutorialBuild.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/usageTracker.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/wall.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/api/workerLocal.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/index.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/retro-console.d.ts +0 -0
- /package/{sandkit → src/sandkit}/engine/state.d.ts +0 -0
- /package/{sandkit → src/sandkit}/index.d.ts +0 -0
- /package/{sandkit → src/sandkit}/react.d.ts +0 -0
- /package/{shared → src/shared}/api/effects.d.ts +0 -0
- /package/{shared → src/shared}/api/maps.d.ts +0 -0
- /package/{shared → src/shared}/api/ui.d.ts +0 -0
- /package/{shared → src/shared}/asset.d.ts +0 -0
- /package/{shared → src/shared}/engine.d.ts +0 -0
- /package/{shared → src/shared}/jsonvalue.d.ts +0 -0
- /package/{shared → src/shared}/nominal.d.ts +0 -0
- /package/{shared → src/shared}/player.d.ts +0 -0
- /package/{worker → src/worker}/api/main.d.ts +0 -0
- /package/{worker → src/worker}/api/worker.d.ts +0 -0
|
@@ -7,81 +7,157 @@ import type { LooseString } from "../../shared/nominal";
|
|
|
7
7
|
export namespace i18n {
|
|
8
8
|
/**
|
|
9
9
|
* Translates a key with optional parameter substitution.
|
|
10
|
+
*
|
|
10
11
|
* @param key - Translation key.
|
|
11
12
|
* @param params - Placeholder values for the key template.
|
|
13
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.t`
|
|
12
14
|
*/
|
|
13
15
|
export function t(key: string, params?: Record<string, string | number>): string;
|
|
16
|
+
|
|
14
17
|
/**
|
|
15
18
|
* Registers translation strings for a locale.
|
|
19
|
+
*
|
|
16
20
|
* @param locale - Locale code (e.g. `en`).
|
|
17
21
|
* @param translations - Map of keys to translated strings.
|
|
22
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.register`
|
|
18
23
|
*/
|
|
19
24
|
export function register(locale: Locale, translations: Record<string, string>): void;
|
|
20
|
-
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the active locale code.
|
|
28
|
+
*
|
|
29
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getLocale`
|
|
30
|
+
*/
|
|
21
31
|
export function getLocale(): Locale;
|
|
32
|
+
|
|
22
33
|
/**
|
|
23
34
|
* Returns true when a translation exists for the key.
|
|
35
|
+
*
|
|
24
36
|
* @param key - Translation key.
|
|
25
37
|
* @param locale - Optional locale; defaults to the active locale.
|
|
38
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.hasTranslation`
|
|
26
39
|
*/
|
|
27
40
|
export function hasTranslation(key: string, locale?: Locale): boolean;
|
|
41
|
+
|
|
28
42
|
/**
|
|
29
43
|
* Sets the active locale.
|
|
44
|
+
*
|
|
30
45
|
* @param locale - Locale code to activate.
|
|
46
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.setLocale`
|
|
31
47
|
*/
|
|
32
48
|
export function setLocale(locale: Locale): Promise<void>;
|
|
33
|
-
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Returns metadata for all known languages.
|
|
52
|
+
*
|
|
53
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getLanguages`
|
|
54
|
+
*/
|
|
34
55
|
export function getLanguages(): { code: Locale; nativeName: string; englishName: string; enabled: boolean; }[];
|
|
35
|
-
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns locale codes that have registered translations.
|
|
59
|
+
*
|
|
60
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getAvailableLocales`
|
|
61
|
+
*/
|
|
36
62
|
export function getAvailableLocales(): Locale[];
|
|
63
|
+
|
|
37
64
|
/**
|
|
38
65
|
* Formats a number for the active locale.
|
|
66
|
+
*
|
|
39
67
|
* @param value - Number to format.
|
|
40
68
|
* @param options - Intl-style number format options.
|
|
69
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.formatNumber`
|
|
41
70
|
*/
|
|
42
71
|
export function formatNumber(value: number, options?: I18nNumberFormatOptions): string;
|
|
72
|
+
|
|
43
73
|
/**
|
|
44
74
|
* Joins key parts into a single translation key.
|
|
75
|
+
*
|
|
45
76
|
* @param parts - Key segments joined with `.`.
|
|
77
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.joinKey`
|
|
78
|
+
*/
|
|
79
|
+
export function joinKey(...parts: string[]): string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Use {@link joinKey} instead.
|
|
83
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.i18n.joinKey`
|
|
46
84
|
*/
|
|
47
85
|
export function key(...parts: string[]): string;
|
|
86
|
+
|
|
48
87
|
/**
|
|
49
88
|
* Returns the display name from a definition with nameKey or name.
|
|
89
|
+
*
|
|
50
90
|
* @param definition - Object with `nameKey` or `name`.
|
|
91
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getName`
|
|
51
92
|
*/
|
|
52
93
|
export function getName(definition: { nameKey?: string; name?: string; }): string;
|
|
94
|
+
|
|
53
95
|
/**
|
|
54
96
|
* Returns the description from a definition with descriptionKey or description.
|
|
97
|
+
*
|
|
55
98
|
* @param definition - Object with `descriptionKey` or `description`.
|
|
99
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getDescription`
|
|
56
100
|
*/
|
|
57
101
|
export function getDescription(definition: { descriptionKey?: string; description?: string; }): string;
|
|
102
|
+
|
|
58
103
|
/**
|
|
59
104
|
* Creates a translatable string object with a fallback.
|
|
105
|
+
*
|
|
60
106
|
* @param key - Translation key.
|
|
61
107
|
* @param fallback - Text used when no translation is registered.
|
|
108
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.createTranslatable`
|
|
109
|
+
*/
|
|
110
|
+
export function createTranslatable(key: string, fallback: string): { __translatable: true; key: string; fallback: string; };
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated Use {@link createTranslatable} instead.
|
|
114
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.i18n.createTranslatable`
|
|
62
115
|
*/
|
|
63
116
|
export function translatable(key: string, fallback: string): { __translatable: true; key: string; fallback: string; };
|
|
117
|
+
|
|
64
118
|
/**
|
|
65
119
|
* Sets a global string or lazy resolver used in translations.
|
|
120
|
+
*
|
|
66
121
|
* @param key - Global helper key.
|
|
67
122
|
* @param value - Static string or function that returns the current value.
|
|
123
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.setGlobal`
|
|
68
124
|
*/
|
|
69
125
|
export function setGlobal(key: string, value: string | (() => string)): void;
|
|
126
|
+
|
|
70
127
|
/**
|
|
71
128
|
* Returns a global translation helper value.
|
|
129
|
+
*
|
|
72
130
|
* @param key - Global helper key.
|
|
131
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getGlobal`
|
|
73
132
|
*/
|
|
74
133
|
export function getGlobal(key: string): string | undefined;
|
|
134
|
+
|
|
75
135
|
/**
|
|
76
136
|
* Removes a global translation helper value.
|
|
137
|
+
*
|
|
77
138
|
* @param key - Global helper key.
|
|
139
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.removeGlobal`
|
|
140
|
+
*/
|
|
141
|
+
export function removeGlobal(key: string): void;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated Use {@link removeGlobal} instead.
|
|
145
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.i18n.removeGlobal`
|
|
78
146
|
*/
|
|
79
147
|
export function clearGlobal(key: string): void;
|
|
80
|
-
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Returns all global translation helper values.
|
|
151
|
+
*
|
|
152
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.getGlobals`
|
|
153
|
+
*/
|
|
81
154
|
export function getGlobals(): Record<string, string>;
|
|
155
|
+
|
|
82
156
|
/**
|
|
83
157
|
* Formats a key code for display in UI.
|
|
158
|
+
*
|
|
84
159
|
* @param keyCode - Keyboard key code or binding name.
|
|
160
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.i18n.formatKeyForDisplay`
|
|
85
161
|
*/
|
|
86
162
|
export function formatKeyForDisplay(keyCode: string): string;
|
|
87
163
|
|
|
@@ -11,6 +11,7 @@ export * from "./action"
|
|
|
11
11
|
export * from "./assets"
|
|
12
12
|
export * from "./authorization"
|
|
13
13
|
export * from "./building"
|
|
14
|
+
export * from "./blueprints"
|
|
14
15
|
export * from "./camera"
|
|
15
16
|
export * from "./collector"
|
|
16
17
|
export * from "./constants"
|
|
@@ -18,10 +19,13 @@ export * from "./cooldown"
|
|
|
18
19
|
export * from "./discoveries"
|
|
19
20
|
export * from "./effects"
|
|
20
21
|
export * from "./elements"
|
|
22
|
+
export * from "./entities"
|
|
21
23
|
export * from "./energy"
|
|
22
24
|
export * from "./events"
|
|
23
25
|
export * from "./excavation"
|
|
24
26
|
export * from "./fire"
|
|
27
|
+
export * from "./factory"
|
|
28
|
+
export * from "./game"
|
|
25
29
|
export * from "./gameconfig"
|
|
26
30
|
export * from "./grid"
|
|
27
31
|
export * from "./hooks"
|
|
@@ -32,6 +36,8 @@ export * from "./lights"
|
|
|
32
36
|
export * from "./maps"
|
|
33
37
|
export * from "./mods"
|
|
34
38
|
export * from "./patterns"
|
|
39
|
+
export * from "./pipes"
|
|
40
|
+
export * from "./pickups"
|
|
35
41
|
export * from "./player"
|
|
36
42
|
export * from "./processing"
|
|
37
43
|
export * from "./progression"
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { shared } from "../../shared";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `sandkit.api.lights` — temporary lights and persistent world lights.
|
|
5
|
+
* Main thread only.
|
|
6
|
+
*/
|
|
7
|
+
export namespace lights {
|
|
8
|
+
/** Short-lived visual effect lights. */
|
|
9
|
+
export namespace temporary {
|
|
10
|
+
/**
|
|
11
|
+
* Create a temporary light at world coordinates.
|
|
12
|
+
*
|
|
13
|
+
* @param worldX - World X coordinate in pixels.
|
|
14
|
+
* @param worldY - World Y coordinate in pixels.
|
|
15
|
+
* @param options - Brightness, duration, color, and dedup options.
|
|
16
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.temporary.createAtWorld`
|
|
17
|
+
*/
|
|
18
|
+
export function createAtWorld(worldX: number, worldY: number, options?: TemporaryLightOptions): TemporaryLightHandle;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Remove a temporary light by its id.
|
|
22
|
+
*
|
|
23
|
+
* @param lightId - Light id returned from {@link createAtWorld}.
|
|
24
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.temporary.removeById`
|
|
25
|
+
*/
|
|
26
|
+
export function removeById(lightId: number): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use {@link temporary} instead.
|
|
31
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.lights.temporary`
|
|
32
|
+
*/
|
|
33
|
+
export import vfx = temporary;
|
|
34
|
+
|
|
35
|
+
/** Lights that persist in the world save. */
|
|
36
|
+
export namespace persistent {
|
|
37
|
+
/**
|
|
38
|
+
* Create a persistent light at world coordinates.
|
|
39
|
+
*
|
|
40
|
+
* @param worldX - World X coordinate in pixels.
|
|
41
|
+
* @param worldY - World Y coordinate in pixels.
|
|
42
|
+
* @param options - Brightness, size, color, and persistence options.
|
|
43
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.persistent.createAtWorld`
|
|
44
|
+
*/
|
|
45
|
+
export function createAtWorld(worldX: number, worldY: number, options?: PersistentLightOptions): PersistentLightHandle;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Remove the persistent light at world coordinates.
|
|
49
|
+
*
|
|
50
|
+
* @param worldX - World X coordinate in pixels.
|
|
51
|
+
* @param worldY - World Y coordinate in pixels.
|
|
52
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.persistent.removeAtWorld`
|
|
53
|
+
*/
|
|
54
|
+
export function removeAtWorld(worldX: number, worldY: number): void;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Fade out the persistent light at world coordinates over durationMs.
|
|
58
|
+
*
|
|
59
|
+
* @param worldX - World X coordinate in pixels.
|
|
60
|
+
* @param worldY - World Y coordinate in pixels.
|
|
61
|
+
* @param durationMs - Fade duration in milliseconds.
|
|
62
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.persistent.fadeAtWorld`
|
|
63
|
+
*/
|
|
64
|
+
export function fadeAtWorld(worldX: number, worldY: number, durationMs?: number): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Mark persistent lights dirty so they are saved on the next flush.
|
|
68
|
+
*
|
|
69
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.lights.persistent.markDirty`
|
|
70
|
+
*/
|
|
71
|
+
export function markDirty(): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Handle returned from {@link temporary.createAtWorld}. */
|
|
75
|
+
export interface TemporaryLightHandle {
|
|
76
|
+
/** Assigned temporary light id, or null when creation failed. */
|
|
77
|
+
lightId: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Use {@link lightId} instead.
|
|
80
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias on `api.lights.temporary.createAtWorld` return value
|
|
81
|
+
*/
|
|
82
|
+
index: number | null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** Options for temporary lights. */
|
|
86
|
+
export type TemporaryLightOptions = shared.api.effects.TemporaryLightOptions;
|
|
87
|
+
|
|
88
|
+
/** Options for persistent world lights. */
|
|
89
|
+
export interface PersistentLightOptions {
|
|
90
|
+
/** Light brightness multiplier. */
|
|
91
|
+
brightness?: number;
|
|
92
|
+
/** Light radius in pixels. */
|
|
93
|
+
size?: number;
|
|
94
|
+
/** RGBA color components. */
|
|
95
|
+
color?: [number, number, number, number];
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Handle returned from {@link persistent.createAtWorld}. */
|
|
100
|
+
export type PersistentLightHandle = unknown;
|
|
101
|
+
}
|
|
@@ -22,6 +22,21 @@ export namespace maps {
|
|
|
22
22
|
*/
|
|
23
23
|
export function start(mapId: string): boolean;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Return artifact marker locations for the active map.
|
|
27
|
+
*
|
|
28
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.maps.getArtifactLocations`
|
|
29
|
+
*/
|
|
30
|
+
export function getArtifactLocations(): readonly ArtifactLocation[];
|
|
31
|
+
|
|
32
|
+
/** Artifact location entry from {@link getArtifactLocations}. */
|
|
33
|
+
export interface ArtifactLocation {
|
|
34
|
+
cellX: number;
|
|
35
|
+
cellY: number;
|
|
36
|
+
name: string;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
/** Available map entry shape. */
|
|
26
41
|
export interface AvailableMapV1 {
|
|
27
42
|
/** Map identifier passed to {@link start}. */
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { PickupType as PickupTypeEnum } from "../enums/index";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* World pickups — spawn, collect, and query pickup instances.
|
|
5
|
+
*
|
|
6
|
+
* Available as `sandkit.api.pickups`.
|
|
7
|
+
*
|
|
8
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups`
|
|
9
|
+
*/
|
|
10
|
+
export namespace pickups {
|
|
11
|
+
/** Official pickup type discriminator. */
|
|
12
|
+
export type PickupType = PickupTypeEnum;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use {@link PickupType} instead.
|
|
16
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.pickups.PickupType`
|
|
17
|
+
*/
|
|
18
|
+
export type WorldItemType = PickupType;
|
|
19
|
+
|
|
20
|
+
/** Optional point light attached when spawning a pickup. */
|
|
21
|
+
export interface WorldItemLight {
|
|
22
|
+
/** Light brightness multiplier. Default 1. */
|
|
23
|
+
brightness?: number;
|
|
24
|
+
/** Light radius in world pixels. Default 100. */
|
|
25
|
+
size?: number;
|
|
26
|
+
/** RGB or RGBA color components in 0–1 range. */
|
|
27
|
+
color?: [number, number, number] | [number, number, number, number];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Active world pickup instance. */
|
|
31
|
+
export interface WorldItem {
|
|
32
|
+
id: number;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
type: PickupType;
|
|
36
|
+
data: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Spawn a pickup at world position.
|
|
41
|
+
*
|
|
42
|
+
* @param type - Pickup type discriminator.
|
|
43
|
+
* @param worldX - World x position in pixels.
|
|
44
|
+
* @param worldY - World y position in pixels.
|
|
45
|
+
* @param data - Optional per-item data bag copied onto the instance.
|
|
46
|
+
* @param light - Optional point light spawned with the pickup.
|
|
47
|
+
* @returns The spawned pickup instance.
|
|
48
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups.spawnAtWorld`
|
|
49
|
+
*/
|
|
50
|
+
export function spawnAtWorld(type: PickupType, worldX: number, worldY: number, data?: Record<string, unknown>, light?: WorldItemLight): WorldItem;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Remove a pickup instance from the world.
|
|
54
|
+
*
|
|
55
|
+
* @param pickup - Pickup returned from spawn or lookup helpers.
|
|
56
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups.remove`
|
|
57
|
+
*/
|
|
58
|
+
export function remove(pickup: WorldItem): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use {@link remove} instead.
|
|
62
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.pickups.remove`
|
|
63
|
+
*/
|
|
64
|
+
export function destroy(pickup: WorldItem): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Pick up a world item into inventory.
|
|
68
|
+
*
|
|
69
|
+
* @param pickup - Pickup to collect.
|
|
70
|
+
* @returns True when the item was collected.
|
|
71
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups.pickUp`
|
|
72
|
+
*/
|
|
73
|
+
export function pickUp(pickup: WorldItem): boolean;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Return all active pickups.
|
|
77
|
+
*
|
|
78
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups.getAll`
|
|
79
|
+
*/
|
|
80
|
+
export function getAll(): WorldItem[];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Return a pickup by numeric id.
|
|
84
|
+
*
|
|
85
|
+
* @param pickupId - Runtime pickup id.
|
|
86
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pickups.getById`
|
|
87
|
+
*/
|
|
88
|
+
export function getById(pickupId: number): WorldItem | undefined;
|
|
89
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { CellCoordinates } from "../../shared/player";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pipe network queries and enablement at grid cells.
|
|
5
|
+
*
|
|
6
|
+
* Available as `sandkit.api.pipes`.
|
|
7
|
+
*
|
|
8
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pipes`
|
|
9
|
+
*/
|
|
10
|
+
export namespace pipes {
|
|
11
|
+
/**
|
|
12
|
+
* Return true when a pipe occupies the cell.
|
|
13
|
+
*
|
|
14
|
+
* @param cellX - Grid column of the target cell.
|
|
15
|
+
* @param cellY - Grid row of the target cell.
|
|
16
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pipes.isAtCell`
|
|
17
|
+
*/
|
|
18
|
+
export function isAtCell(...args: CellCoordinates): boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Return true when pipe flow is enabled at the cell.
|
|
22
|
+
*
|
|
23
|
+
* @param cellX - Grid column of the target cell.
|
|
24
|
+
* @param cellY - Grid row of the target cell.
|
|
25
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pipes.isEnabledAtCell`
|
|
26
|
+
*/
|
|
27
|
+
export function isEnabledAtCell(...args: CellCoordinates): boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Return connected liquid vent cell positions for the pipe at a cell.
|
|
31
|
+
*
|
|
32
|
+
* @param cellX - Grid column of the target cell.
|
|
33
|
+
* @param cellY - Grid row of the target cell.
|
|
34
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pipes.getConnectedVentsAtCell`
|
|
35
|
+
*/
|
|
36
|
+
export function getConnectedVentsAtCell(...args: CellCoordinates): readonly PipeVentCell[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Enable or disable pipe flow at a cell.
|
|
40
|
+
*
|
|
41
|
+
* @param cellX - Grid column of the target cell.
|
|
42
|
+
* @param cellY - Grid row of the target cell.
|
|
43
|
+
* @param enabled - Desired enabled state.
|
|
44
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.pipes.setEnabledAtCell`
|
|
45
|
+
*/
|
|
46
|
+
export function setEnabledAtCell(...args: [...CellCoordinates, enabled: boolean]): void;
|
|
47
|
+
|
|
48
|
+
/** Connected vent cell position. */
|
|
49
|
+
export interface PipeVentCell {
|
|
50
|
+
cellX: number;
|
|
51
|
+
cellY: number;
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Player position, movement, inventory, and building unlocks.
|
|
3
|
+
*
|
|
4
|
+
* Available as `sandkit.api.player`.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import { shared } from "../../shared";
|
|
9
|
+
|
|
10
|
+
export namespace player {
|
|
11
|
+
|
|
12
|
+
/** Return the player world position. */
|
|
13
|
+
export import getPositionAtWorld = shared.api.player.getPositionAtWorld;
|
|
14
|
+
/** Return true when the player overlaps the given cell. */
|
|
15
|
+
export import isCollidingWithCell = shared.api.player.isCollidingWithCell;
|
|
16
|
+
/** Return true when the player is within radius of the given cell. */
|
|
17
|
+
export import isWithinRadiusOfCell = shared.api.player.isWithinRadiusOfCell;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use {@link getPositionAtWorld} instead.
|
|
21
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.player.getPositionAtWorld`
|
|
22
|
+
*/
|
|
23
|
+
export import getWorldPosition = shared.api.player.getWorldPosition;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Set the player world position.
|
|
27
|
+
*
|
|
28
|
+
* @param worldX - World x position in pixels.
|
|
29
|
+
* @param worldY - World y position in pixels.
|
|
30
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.setPositionAtWorld`
|
|
31
|
+
*/
|
|
32
|
+
export function setPositionAtWorld(worldX: number, worldY: number): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use {@link setPositionAtWorld} instead.
|
|
36
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.player.setPositionAtWorld`
|
|
37
|
+
*/
|
|
38
|
+
export function setWorldPosition(worldX: number, worldY: number): void;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Set the player velocity.
|
|
42
|
+
*
|
|
43
|
+
* @param velocityX - Horizontal velocity in pixels per second.
|
|
44
|
+
* @param velocityY - Vertical velocity in pixels per second.
|
|
45
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.setVelocity`
|
|
46
|
+
*/
|
|
47
|
+
export function setVelocity(velocityX: number, velocityY: number): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Set the movement speed multiplier.
|
|
51
|
+
*
|
|
52
|
+
* @param multiplier - Speed scale factor (`1` is default walk). `0` freezes movement.
|
|
53
|
+
* Vanilla Sprint Boost (Shift burst + meter) only runs when this value is exactly `1`.
|
|
54
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.setMovementSpeedMultiplier`
|
|
55
|
+
*/
|
|
56
|
+
export function setMovementSpeedMultiplier(multiplier: number): void;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Set movement mode to normal or hover.
|
|
60
|
+
*
|
|
61
|
+
* @param mode - `"normal"` for default physics, or `"hover"` for hover flight.
|
|
62
|
+
* @returns True when the mode changes.
|
|
63
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.setMovementMode`
|
|
64
|
+
*/
|
|
65
|
+
export function setMovementMode(mode: 'normal' | 'hover'): boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Return true when the player is on ground.
|
|
69
|
+
* Tests solid cells 1 pixel below the hitbox. Do not use `player.onGround`
|
|
70
|
+
* on the store snapshot — that flag is not updated during play.
|
|
71
|
+
*
|
|
72
|
+
* @returns True when the player touches solid ground.
|
|
73
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.isOnGround`
|
|
74
|
+
*/
|
|
75
|
+
export function isOnGround(): boolean;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Move the player down until ground is found.
|
|
79
|
+
*
|
|
80
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.teleportToGround`
|
|
81
|
+
*/
|
|
82
|
+
export function teleportToGround(): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Return true when the world position has no collision.
|
|
86
|
+
*
|
|
87
|
+
* @param worldX - World x position in pixels to test.
|
|
88
|
+
* @param worldY - World y position in pixels to test.
|
|
89
|
+
* @returns True when the player hitbox fits at the position.
|
|
90
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.isPositionClearAtWorld`
|
|
91
|
+
*/
|
|
92
|
+
export function isPositionClearAtWorld(worldX: number, worldY: number): boolean;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Use {@link isPositionClearAtWorld} instead.
|
|
96
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.player.isPositionClearAtWorld`
|
|
97
|
+
*/
|
|
98
|
+
export function isWorldPositionClear(worldX: number, worldY: number): boolean;
|
|
99
|
+
|
|
100
|
+
/** Player inventory helpers. */
|
|
101
|
+
export namespace inventory {
|
|
102
|
+
/**
|
|
103
|
+
* Add an item to inventory by item id.
|
|
104
|
+
*
|
|
105
|
+
* @param itemId - Registered item id string.
|
|
106
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.inventory.addById`
|
|
107
|
+
*/
|
|
108
|
+
export function addById(itemId: string): void;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Use {@link addById} instead.
|
|
112
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.player.inventory.addById`
|
|
113
|
+
*/
|
|
114
|
+
export function addFromId(itemId: string): void;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Player building unlock helpers. */
|
|
118
|
+
export namespace buildings {
|
|
119
|
+
/**
|
|
120
|
+
* Unlock a structure type for building.
|
|
121
|
+
*
|
|
122
|
+
* @param structureId - Registered structure id string.
|
|
123
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.buildings.unlockById`
|
|
124
|
+
*/
|
|
125
|
+
export function unlockById(structureId: string): void;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Use {@link unlockById} instead.
|
|
129
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — deprecated alias of `api.player.buildings.unlockById`
|
|
130
|
+
*/
|
|
131
|
+
export function unlockByType(structureId: string): void;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Remove a structure unlock from the player.
|
|
135
|
+
*
|
|
136
|
+
* @param structureId - Registered structure id string.
|
|
137
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.player.buildings.removeById`
|
|
138
|
+
*/
|
|
139
|
+
export function removeById(structureId: string): void;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -14,6 +14,14 @@ export namespace rendering {
|
|
|
14
14
|
* @param cellY - Grid cell Y coordinate.
|
|
15
15
|
*/
|
|
16
16
|
export function getDrawPositionAtCell(...args: CellCoordinates): Vector2;
|
|
17
|
+
/**
|
|
18
|
+
* Return screen draw position for a world-space point.
|
|
19
|
+
*
|
|
20
|
+
* @param worldX - World x position in pixels.
|
|
21
|
+
* @param worldY - World y position in pixels.
|
|
22
|
+
* @see https://sandustry.com/sandkit.html Official Sandkit API — Main entry `api.rendering.getDrawPositionAtWorld`
|
|
23
|
+
*/
|
|
24
|
+
export function getDrawPositionAtWorld(worldX: number, worldY: number): Vector2;
|
|
17
25
|
/** Return cell size and snap grid metrics. */
|
|
18
26
|
export function getGridMetrics(): { cellSize: number; snapGridCellSize: number; };
|
|
19
27
|
/** Return overlay viewport width and height in pixels. */
|
|
@@ -14,6 +14,8 @@ export type SandkitApi = {
|
|
|
14
14
|
authorization: typeof import("./authorization").authorization;
|
|
15
15
|
/** Building mode and placement. */
|
|
16
16
|
building: typeof import("./building").building;
|
|
17
|
+
/** Structure blueprint serialize and localize helpers. */
|
|
18
|
+
blueprints: typeof import("./blueprints").blueprints;
|
|
17
19
|
/** Camera position and bounds. */
|
|
18
20
|
camera: typeof import("./camera").camera;
|
|
19
21
|
/** Collector machine helpers. */
|
|
@@ -28,6 +30,8 @@ export type SandkitApi = {
|
|
|
28
30
|
effects: typeof import("./effects").effects;
|
|
29
31
|
/** Element types and cell mutations. */
|
|
30
32
|
elements: typeof import("./elements").elements;
|
|
33
|
+
/** Entity spawn, capture, and lifecycle. */
|
|
34
|
+
entities: typeof import("./entities").entities;
|
|
31
35
|
/** Energy network helpers. */
|
|
32
36
|
energy: typeof import("./energy").energy;
|
|
33
37
|
/** Game event subscription. */
|
|
@@ -36,9 +40,16 @@ export type SandkitApi = {
|
|
|
36
40
|
excavation: typeof import("./excavation").excavation;
|
|
37
41
|
/** Fire and burning helpers. */
|
|
38
42
|
fire: typeof import("./fire").fire;
|
|
43
|
+
/** Factory progression level and process counters. */
|
|
44
|
+
factory: typeof import("./factory").factory;
|
|
45
|
+
/** Game session start helpers. */
|
|
46
|
+
game: typeof import("./game").game;
|
|
39
47
|
/** Game configuration values. */
|
|
40
48
|
gameConfig: typeof import("./gameconfig").gameConfig;
|
|
41
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Cell queries, deferred mutations, fog, and redraw.
|
|
51
|
+
* Official name for the former `api.world` surface.
|
|
52
|
+
*/
|
|
42
53
|
grid: typeof import("./grid").grid;
|
|
43
54
|
/** Intercept and modify hooks. */
|
|
44
55
|
hooks: typeof import("./hooks").hooks;
|
|
@@ -56,6 +67,10 @@ export type SandkitApi = {
|
|
|
56
67
|
mods: typeof import("./mods").mods;
|
|
57
68
|
/** Excavation pattern helpers. */
|
|
58
69
|
patterns: typeof import("./patterns").patterns;
|
|
70
|
+
/** Pipe network queries and enablement. */
|
|
71
|
+
pipes: typeof import("./pipes").pipes;
|
|
72
|
+
/** World pickup spawn, collect, and lookup. */
|
|
73
|
+
pickups: typeof import("./pickups").pickups;
|
|
59
74
|
/** Player position, movement, and inventory. */
|
|
60
75
|
player: typeof import("./player").player;
|
|
61
76
|
/** Processing recipe registration. */
|
|
@@ -112,6 +127,8 @@ export type SandkitApi = {
|
|
|
112
127
|
utils: typeof import("./utils").utils;
|
|
113
128
|
/** Worker post-update control. */
|
|
114
129
|
workers: typeof import("./workers").workers;
|
|
115
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated Use {@link grid} for cell APIs and {@link pickups} for world items.
|
|
132
|
+
*/
|
|
116
133
|
world: typeof import("./world").world;
|
|
117
134
|
};
|