MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / assetImage

Method assetImage

source/game/scripting/StarRootLuaBindings.cpp:270–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270Image LuaBindings::RootCallbacks::assetImage(Root* root, String const& path) {
271 return *root->assets()->image(path);
272}
273
274Json LuaBindings::RootCallbacks::assetFrames(Root* root, String const& path) {
275 if (auto frames = root->assets()->imageFrames(path))

Callers

nothing calls this directly

Calls 2

assetsMethod · 0.80
imageMethod · 0.45

Tested by

no test coverage detected