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

Method assetFrames

source/game/scripting/StarRootLuaBindings.cpp:274–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274Json LuaBindings::RootCallbacks::assetFrames(Root* root, String const& path) {
275 if (auto frames = root->assets()->imageFrames(path))
276 return frames->toJson();
277 return Json();
278}
279
280Json LuaBindings::RootCallbacks::assetJson(Root* root, String const& path) {
281 return root->assets()->json(path);

Callers

nothing calls this directly

Calls 4

JsonClass · 0.85
imageFramesMethod · 0.80
assetsMethod · 0.80
toJsonMethod · 0.45

Tested by

no test coverage detected