From 661540efe2a8054a89298c4e7e5229ba35e5a671 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:14:50 -0500 Subject: [PATCH] Update openstarbound.md --- doc/lua/openstarbound.md | 20 +++++++++++++------- 1 file 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.