Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua
diff options
context:
space:
mode:
authorSilverSokolova <80606782+SilverSokolova@users.noreply.github.com>2024-07-09 22:14:50 -0500
committerGitHub <noreply@github.com>2024-07-09 22:14:50 -0500
commit661540efe2a8054a89298c4e7e5229ba35e5a671 (patch)
tree9b248cffb03fdc6d52cdd7ba7f51dd8bc5fc49bb /doc/lua
parentdd7e3c91b06a77238d58965bcf01cc32d46c55ef (diff)
Update openstarbound.md
Diffstat (limited to 'doc/lua')
-rw-r--r--doc/lua/openstarbound.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/doc/lua/openstarbound.md b/doc/lua/openstarbound.md
index 6e29afc..d888e55 100644
--- a/doc/lua/openstarbound.md
+++ b/doc/lua/openstarbound.md
@@ -76,6 +76,16 @@ Returns the asset source path of an asset, or nil if the asset doesn't exist. If
Without metadata: Returns an array with all the asset source paths.
With metadata: Returns a table, key/value being source path/metadata.
+#### `?` root.assetImage(`String` image)
+
+*TODO*
+
+#### `JsonArray` root.assetPatches(`String` asset)
+
+Returns a list of asset sources which patch the specified asset and the paths to those patches.
+
+---
+
#### `Json` root.getConfiguration(`String` key)
Gets a configuration value in `/storage/starbound.config`.
@@ -96,18 +106,14 @@ Sets a configuration value in `/storage/starbound.config` by path.
*Both setters will error if you try to set `safeScripts`, as that can break Starbound's sandbox.*
-#### `Json` root.assetImage(`String` image)
-
-*TODO*
-
-#### `Json` root.assetPatches(`String` asset)
-
-*TODO*
+---
#### `JsonArray` root.allRecipes()
Returns all recipes.
+---
+
# Player
The player table now contains bindings which contains functions to save/load, access and modify the player's identity, mode, aim, emote and more.