@sandustry-modding/types 0.1.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 (124) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +66 -0
  3. package/global.d.ts +38 -0
  4. package/package.json +44 -0
  5. package/sandkit/api/action.d.ts +28 -0
  6. package/sandkit/api/assets.d.ts +30 -0
  7. package/sandkit/api/authorization.d.ts +54 -0
  8. package/sandkit/api/building.d.ts +92 -0
  9. package/sandkit/api/camera.d.ts +23 -0
  10. package/sandkit/api/collector.d.ts +36 -0
  11. package/sandkit/api/constants.d.ts +21 -0
  12. package/sandkit/api/cooldown.d.ts +26 -0
  13. package/sandkit/api/discoveries.d.ts +18 -0
  14. package/sandkit/api/effects.d.ts +76 -0
  15. package/sandkit/api/elements.d.ts +237 -0
  16. package/sandkit/api/energy.d.ts +70 -0
  17. package/sandkit/api/events.d.ts +53 -0
  18. package/sandkit/api/excavation.d.ts +34 -0
  19. package/sandkit/api/fire.d.ts +26 -0
  20. package/sandkit/api/gameconfig.d.ts +15 -0
  21. package/sandkit/api/grid.d.ts +26 -0
  22. package/sandkit/api/hooks.d.ts +52 -0
  23. package/sandkit/api/i18n.d.ts +101 -0
  24. package/sandkit/api/index.d.ts +66 -0
  25. package/sandkit/api/input.d.ts +119 -0
  26. package/sandkit/api/items.d.ts +60 -0
  27. package/sandkit/api/lights.d.ts +66 -0
  28. package/sandkit/api/maps.d.ts +33 -0
  29. package/sandkit/api/mods.d.ts +18 -0
  30. package/sandkit/api/patterns.d.ts +32 -0
  31. package/sandkit/api/player.d.ts +84 -0
  32. package/sandkit/api/processing.d.ts +66 -0
  33. package/sandkit/api/progression.d.ts +22 -0
  34. package/sandkit/api/projectiles.d.ts +80 -0
  35. package/sandkit/api/random.d.ts +21 -0
  36. package/sandkit/api/raycast.d.ts +19 -0
  37. package/sandkit/api/reactions.d.ts +30 -0
  38. package/sandkit/api/rendering.d.ts +26 -0
  39. package/sandkit/api/resources.d.ts +23 -0
  40. package/sandkit/api/sandkit-api.d.ts +117 -0
  41. package/sandkit/api/scene.d.ts +15 -0
  42. package/sandkit/api/schedule.d.ts +14 -0
  43. package/sandkit/api/settings.d.ts +29 -0
  44. package/sandkit/api/shared.d.ts +27 -0
  45. package/sandkit/api/signals.d.ts +25 -0
  46. package/sandkit/api/sound.d.ts +91 -0
  47. package/sandkit/api/sprites.d.ts +45 -0
  48. package/sandkit/api/storage.d.ts +55 -0
  49. package/sandkit/api/structureBehaviors.d.ts +22 -0
  50. package/sandkit/api/structures.d.ts +320 -0
  51. package/sandkit/api/tech.d.ts +66 -0
  52. package/sandkit/api/terrains.d.ts +125 -0
  53. package/sandkit/api/time.d.ts +13 -0
  54. package/sandkit/api/tools.d.ts +35 -0
  55. package/sandkit/api/triggers.d.ts +24 -0
  56. package/sandkit/api/ui.d.ts +175 -0
  57. package/sandkit/api/upgrades.d.ts +63 -0
  58. package/sandkit/api/utils.d.ts +35 -0
  59. package/sandkit/api/workers.d.ts +14 -0
  60. package/sandkit/api/world.d.ts +107 -0
  61. package/sandkit/engine/api/augments.d.ts +96 -0
  62. package/sandkit/engine/api/auralite.d.ts +21 -0
  63. package/sandkit/engine/api/blueprints.d.ts +47 -0
  64. package/sandkit/engine/api/clipboard.d.ts +46 -0
  65. package/sandkit/engine/api/colorPicker.d.ts +74 -0
  66. package/sandkit/engine/api/coloringTool.d.ts +56 -0
  67. package/sandkit/engine/api/conveyors.d.ts +16 -0
  68. package/sandkit/engine/api/debug.d.ts +16 -0
  69. package/sandkit/engine/api/drones.d.ts +21 -0
  70. package/sandkit/engine/api/entities.d.ts +66 -0
  71. package/sandkit/engine/api/extensions.d.ts +16 -0
  72. package/sandkit/engine/api/factory.d.ts +56 -0
  73. package/sandkit/engine/api/foliage.d.ts +31 -0
  74. package/sandkit/engine/api/foundationColorPicker.d.ts +16 -0
  75. package/sandkit/engine/api/game.d.ts +26 -0
  76. package/sandkit/engine/api/heatTransfer.d.ts +46 -0
  77. package/sandkit/engine/api/index.d.ts +47 -0
  78. package/sandkit/engine/api/launchers.d.ts +16 -0
  79. package/sandkit/engine/api/lightColorPicker.d.ts +16 -0
  80. package/sandkit/engine/api/matters.d.ts +26 -0
  81. package/sandkit/engine/api/misc.d.ts +16 -0
  82. package/sandkit/engine/api/portals.d.ts +16 -0
  83. package/sandkit/engine/api/prefabData.d.ts +36 -0
  84. package/sandkit/engine/api/prefabDecor.d.ts +21 -0
  85. package/sandkit/engine/api/prefabulator.d.ts +21 -0
  86. package/sandkit/engine/api/prismaline.d.ts +26 -0
  87. package/sandkit/engine/api/prismite.d.ts +26 -0
  88. package/sandkit/engine/api/queue.d.ts +41 -0
  89. package/sandkit/engine/api/shadows.d.ts +26 -0
  90. package/sandkit/engine/api/strataform.d.ts +36 -0
  91. package/sandkit/engine/api/swarmConsole.d.ts +71 -0
  92. package/sandkit/engine/api/sweeperDrone.d.ts +16 -0
  93. package/sandkit/engine/api/teleportZones.d.ts +46 -0
  94. package/sandkit/engine/api/tutorialBuild.d.ts +66 -0
  95. package/sandkit/engine/api/usageTracker.d.ts +26 -0
  96. package/sandkit/engine/api/wall.d.ts +31 -0
  97. package/sandkit/engine/api/workerLocal.d.ts +30 -0
  98. package/sandkit/engine/index.d.ts +135 -0
  99. package/sandkit/engine/retro-console.d.ts +52 -0
  100. package/sandkit/engine/state.d.ts +31 -0
  101. package/sandkit/enums/index.d.ts +444 -0
  102. package/sandkit/index.d.ts +47 -0
  103. package/sandkit/react.d.ts +49 -0
  104. package/shared/api/effects.d.ts +76 -0
  105. package/shared/api/elements.d.ts +162 -0
  106. package/shared/api/maps.d.ts +30 -0
  107. package/shared/api/player.d.ts +31 -0
  108. package/shared/api/shared.d.ts +46 -0
  109. package/shared/api/structures.d.ts +138 -0
  110. package/shared/api/terrains.d.ts +100 -0
  111. package/shared/api/ui.d.ts +54 -0
  112. package/shared/api/world.d.ts +71 -0
  113. package/shared/asset.d.ts +14 -0
  114. package/shared/engine.d.ts +17 -0
  115. package/shared/index.d.ts +25 -0
  116. package/shared/jsonvalue.d.ts +30 -0
  117. package/shared/nominal.d.ts +31 -0
  118. package/shared/player.d.ts +173 -0
  119. package/worker/api/elements.d.ts +60 -0
  120. package/worker/api/main.d.ts +16 -0
  121. package/worker/api/shared.d.ts +38 -0
  122. package/worker/api/worker.d.ts +20 -0
  123. package/worker/index.d.ts +29 -0
  124. package/worker/sandkit-api.d.ts +31 -0
@@ -0,0 +1,56 @@
1
+ /**
2
+ * `sandkit.engine.api.coloringTool` — paint-bucket and flood-fill structure coloring.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace coloringTool {
11
+ /**
12
+ * Apply a color to one structure.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function colorStructure(...args: unknown[]): unknown;
16
+ /**
17
+ * Flood-fill connected structures with a color.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function floodFillColor(...args: unknown[]): unknown;
21
+ /**
22
+ * Return the color on a structure.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getColor(...args: unknown[]): unknown;
26
+ /**
27
+ * Return whether a structure can be colored.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function isColorableStructure(...args: unknown[]): unknown;
31
+ /**
32
+ * Return whether match-color mode is active.
33
+ * @param args - Game state first, then method-specific arguments.
34
+ */
35
+ export function isMatchColorMode(...args: unknown[]): unknown;
36
+ /**
37
+ * Return whether paint-bucket mode is active.
38
+ * @param args - Game state first, then method-specific arguments.
39
+ */
40
+ export function isPaintBucketMode(...args: unknown[]): unknown;
41
+ /**
42
+ * Set the color on a structure.
43
+ * @param args - Game state first, then method-specific arguments.
44
+ */
45
+ export function setColor(...args: unknown[]): unknown;
46
+ /**
47
+ * Toggle match-color mode on or off.
48
+ * @param args - Game state first, then method-specific arguments.
49
+ */
50
+ export function toggleMatchColorMode(...args: unknown[]): unknown;
51
+ /**
52
+ * Toggle paint-bucket mode on or off.
53
+ * @param args - Game state first, then method-specific arguments.
54
+ */
55
+ export function togglePaintBucketMode(...args: unknown[]): unknown;
56
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.conveyors` — conveyor type registration.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace conveyors {
11
+ /**
12
+ * Register a custom conveyor type.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function registerType(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.debug` — debug overlay registration.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace debug {
11
+ /**
12
+ * Register a debug overlay or helper.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function register(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `sandkit.engine.api.drones` — drone spawn and removal.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace drones {
11
+ /**
12
+ * Remove one or more drones.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function kill(...args: unknown[]): unknown;
16
+ /**
17
+ * Spawn a drone instance.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function spawn(...args: unknown[]): unknown;
21
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * `sandkit.engine.api.entities` — entity type registration, spawn, and queries.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace entities {
11
+ /**
12
+ * Create a light entity attached to a parent.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function createLight(...args: unknown[]): unknown;
16
+ /**
17
+ * Return all live entities.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function getAll(...args: unknown[]): unknown;
21
+ /**
22
+ * Return all entities of one type.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getAllByType(...args: unknown[]): unknown;
26
+ /**
27
+ * Return all registered entity type definitions.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function getAllTypeDefs(...args: unknown[]): unknown;
31
+ /**
32
+ * Return the sprite for an entity.
33
+ * @param args - Game state first, then method-specific arguments.
34
+ */
35
+ export function getSprite(...args: unknown[]): unknown;
36
+ /**
37
+ * Return one entity type definition by id.
38
+ * @param args - Game state first, then method-specific arguments.
39
+ */
40
+ export function getTypeDef(...args: unknown[]): unknown;
41
+ /**
42
+ * Launch an entity with velocity or trajectory.
43
+ * @param args - Game state first, then method-specific arguments.
44
+ */
45
+ export function launch(...args: unknown[]): unknown;
46
+ /**
47
+ * Register an entity spawner behavior.
48
+ * @param args - Game state first, then method-specific arguments.
49
+ */
50
+ export function registerSpawner(...args: unknown[]): unknown;
51
+ /**
52
+ * Register a custom entity type.
53
+ * @param args - Game state first, then method-specific arguments.
54
+ */
55
+ export function registerType(...args: unknown[]): unknown;
56
+ /**
57
+ * Spawn an entity instance.
58
+ * @param args - Game state first, then method-specific arguments.
59
+ */
60
+ export function spawn(...args: unknown[]): unknown;
61
+ /**
62
+ * Start capturing entities for a tool or effect.
63
+ * @param args - Game state first, then method-specific arguments.
64
+ */
65
+ export function startCapture(...args: unknown[]): unknown;
66
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.extensions` — structure extension definitions.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace extensions {
11
+ /**
12
+ * Define a structure extension type.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function define(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * `sandkit.engine.api.factory` — factory tier progression and process tracking.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace factory {
11
+ /**
12
+ * Add viability gold toward the next factory tier.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function addViabilityGold(...args: unknown[]): unknown;
16
+ /**
17
+ * Return whether the next factory tier can be unlocked.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function canUnlockNextTier(...args: unknown[]): unknown;
21
+ /**
22
+ * Ensure at least the given process count has been recorded.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function ensureProcessAtLeast(...args: unknown[]): unknown;
26
+ /**
27
+ * Apply deferred factory level-ups.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function flushDeferredLevelUps(...args: unknown[]): unknown;
31
+ /**
32
+ * Return the current factory level.
33
+ * @param args - Game state first, then method-specific arguments.
34
+ */
35
+ export function getLevel(...args: unknown[]): unknown;
36
+ /**
37
+ * Return total recorded process count.
38
+ * @param args - Game state first, then method-specific arguments.
39
+ */
40
+ export function getProcessCount(...args: unknown[]): unknown;
41
+ /**
42
+ * Return the current process rate.
43
+ * @param args - Game state first, then method-specific arguments.
44
+ */
45
+ export function getProcessRate(...args: unknown[]): unknown;
46
+ /**
47
+ * Record one factory process event.
48
+ * @param args - Game state first, then method-specific arguments.
49
+ */
50
+ export function recordProcess(...args: unknown[]): unknown;
51
+ /**
52
+ * Unlock the next factory tier.
53
+ * @param args - Game state first, then method-specific arguments.
54
+ */
55
+ export function unlockNextTier(...args: unknown[]): unknown;
56
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * `sandkit.engine.api.foliage` — procedural foliage generation and clusters.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace foliage {
11
+ /**
12
+ * Generate foliage for a region or world chunk.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function generate(...args: unknown[]): unknown;
16
+ /**
17
+ * Return foliage cluster data.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function getClusters(...args: unknown[]): unknown;
21
+ /**
22
+ * Return the foliage render container.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getContainer(...args: unknown[]): unknown;
26
+ /**
27
+ * Return whether procgen foliage data exists for a location.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function hasProcgenData(...args: unknown[]): unknown;
31
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.foundationColorPicker` — foundation tile color lookup.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace foundationColorPicker {
11
+ /**
12
+ * Return the color on a foundation tile.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getColor(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `sandkit.engine.api.game` — game session start, save, and load.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace game {
11
+ /**
12
+ * Load a saved game into the session.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function load(...args: unknown[]): unknown;
16
+ /**
17
+ * Save the current session.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function save(...args: unknown[]): unknown;
21
+ /**
22
+ * Start a new game session.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function start(...args: unknown[]): unknown;
26
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * `sandkit.engine.api.heatTransfer` — temperature diffusion and absorption.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace heatTransfer {
11
+ /**
12
+ * Absorb heat from adjacent elements into a cell.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function absorbAdjacentElements(...args: unknown[]): unknown;
16
+ /**
17
+ * Add temperature to a cell or region.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function addTemperature(...args: unknown[]): unknown;
21
+ /**
22
+ * Compute diffused temperatures for connected cells.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function computeDiffusedTemperatures(...args: unknown[]): unknown;
26
+ /**
27
+ * Compute one equalized temperature across connected cells.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function computeEqualizedTemperature(...args: unknown[]): unknown;
31
+ /**
32
+ * Consume temperature near a point or cell.
33
+ * @param args - Game state first, then method-specific arguments.
34
+ */
35
+ export function consumeTemperatureNear(...args: unknown[]): unknown;
36
+ /**
37
+ * Ensure a cell has at least the given temperature.
38
+ * @param args - Game state first, then method-specific arguments.
39
+ */
40
+ export function ensureTemperature(...args: unknown[]): unknown;
41
+ /**
42
+ * Equalize temperature across a connected component.
43
+ * @param args - Game state first, then method-specific arguments.
44
+ */
45
+ export function equalizeConnected(...args: unknown[]): unknown;
46
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * `sandkit.engine.api` — composed engine API namespaces.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Engine methods usually take **game state as the first argument** (`args[0]`);
6
+ * remaining `args` entries are method-specific. Names are shorter than the
7
+ * public `sandkit.api` surface. Engine-only members below are stubs until confirmed.
8
+ *
9
+ * @internal
10
+ */
11
+
12
+ export * from "./augments";
13
+ export * from "./auralite";
14
+ export * from "./blueprints";
15
+ export * from "./clipboard";
16
+ export * from "./colorPicker";
17
+ export * from "./coloringTool";
18
+ export * from "./conveyors";
19
+ export * from "./debug";
20
+ export * from "./drones";
21
+ export * from "./entities";
22
+ export * from "./extensions";
23
+ export * from "./factory";
24
+ export * from "./foliage";
25
+ export * from "./foundationColorPicker";
26
+ export * from "./game";
27
+ export * from "./heatTransfer";
28
+ export * from "./launchers";
29
+ export * from "./lightColorPicker";
30
+ export * from "./matters";
31
+ export * from "./misc";
32
+ export * from "./portals";
33
+ export * from "./prefabData";
34
+ export * from "./prefabDecor";
35
+ export * from "./prefabulator";
36
+ export * from "./prismaline";
37
+ export * from "./prismite";
38
+ export * from "./queue";
39
+ export * from "./shadows";
40
+ export * from "./strataform";
41
+ export * from "./swarmConsole";
42
+ export * from "./sweeperDrone";
43
+ export * from "./teleportZones";
44
+ export * from "./tutorialBuild";
45
+ export * from "./usageTracker";
46
+ export * from "./wall";
47
+ export * from "./workerLocal";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.launchers` — launcher type registration.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace launchers {
11
+ /**
12
+ * Register a custom launcher type.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function registerType(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.lightColorPicker` — light color lookup.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace lightColorPicker {
11
+ /**
12
+ * Return the color on a light structure.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getColor(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `sandkit.engine.api.matters` — matter type registration and solid updates.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace matters {
11
+ /**
12
+ * Resolve a matter type from an id string.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getMatterTypeFromId(...args: unknown[]): unknown;
16
+ /**
17
+ * Register a custom matter type.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function register(...args: unknown[]): unknown;
21
+ /**
22
+ * Run one solid-matter update step.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function runSolidUpdate(...args: unknown[]): unknown;
26
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.misc` — miscellaneous structure behavior registration.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace misc {
11
+ /**
12
+ * Register a miscellaneous structure behavior.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function register(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `sandkit.engine.api.portals` — portal marker queries.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace portals {
11
+ /**
12
+ * Return portal markers in the world.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getMarkers(...args: unknown[]): unknown;
16
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * `sandkit.engine.api.prefabData` — prefab artifact and metadata lookup.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace prefabData {
11
+ /**
12
+ * Return all prefab data entries.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getAll(...args: unknown[]): unknown;
16
+ /**
17
+ * Return metadata for all prefabs.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function getAllMetadata(...args: unknown[]): unknown;
21
+ /**
22
+ * Return artifact locations for prefabs.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getArtifactLocations(...args: unknown[]): unknown;
26
+ /**
27
+ * Return prefab data at one grid cell.
28
+ * @param args - Game state first, then method-specific arguments.
29
+ */
30
+ export function getAtCell(...args: unknown[]): unknown;
31
+ /**
32
+ * Return metadata for one prefab.
33
+ * @param args - Game state first, then method-specific arguments.
34
+ */
35
+ export function getMetadata(...args: unknown[]): unknown;
36
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `sandkit.engine.api.prefabDecor` — prefab decorative placement.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace prefabDecor {
11
+ /**
12
+ * Return a decor placement definition by name.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function getPlacementByName(...args: unknown[]): unknown;
16
+ /**
17
+ * Replace decor instances in a region or prefab.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function replaceDecor(...args: unknown[]): unknown;
21
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `sandkit.engine.api.prefabulator` — blueprint structure serialization for prefabs.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace prefabulator {
11
+ /**
12
+ * Convert serialized blueprint structures to world-local coordinates.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function localizeBlueprintStructures(...args: unknown[]): unknown;
16
+ /**
17
+ * Serialize blueprint structures for prefab storage.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function serializeBlueprintStructures(...args: unknown[]): unknown;
21
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `sandkit.engine.api.prismaline` — prismaline resource consume and availability.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace prismaline {
11
+ /**
12
+ * Consume prismaline from the player or world.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function consume(...args: unknown[]): unknown;
16
+ /**
17
+ * Return available prismaline amount.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function getAvailable(...args: unknown[]): unknown;
21
+ /**
22
+ * Return total prismaline consumed so far.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getConsumed(...args: unknown[]): unknown;
26
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `sandkit.engine.api.prismite` — prismite resource consume and availability.
3
+ *
4
+ * **Internal API.** Prefer {@link sandkit.api} when a public method exists.
5
+ * Methods use loose stubs; signatures may take game state as the first argument.
6
+ * Engine methods pass game state as the first argument (args[0]); remaining entries are method-specific.
7
+ *
8
+ * @internal
9
+ */
10
+ export namespace prismite {
11
+ /**
12
+ * Consume prismite from the player or world.
13
+ * @param args - Game state first, then method-specific arguments.
14
+ */
15
+ export function consume(...args: unknown[]): unknown;
16
+ /**
17
+ * Return available prismite amount.
18
+ * @param args - Game state first, then method-specific arguments.
19
+ */
20
+ export function getAvailable(...args: unknown[]): unknown;
21
+ /**
22
+ * Return total prismite consumed so far.
23
+ * @param args - Game state first, then method-specific arguments.
24
+ */
25
+ export function getConsumed(...args: unknown[]): unknown;
26
+ }