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

Method toJson

source/base/StarAssets.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105Json FramesSpecification::toJson() const {
106 return JsonObject{
107 {"aliases", jsonFromMap(aliases)},
108 {"frames", jsonFromMapV(frames, jsonFromRectU)},
109 {"file", framesFile}
110 };
111}
112
113Assets::Assets(Settings settings, StringList assetSources) {
114 const char* AssetsPatchSuffix = ".patch";

Callers 1

AssetsMethod · 0.45

Calls 2

jsonFromMapFunction · 0.85
jsonFromMapVFunction · 0.85

Tested by

no test coverage detected