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

Method assets

source/game/StarRoot.cpp:383–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383AssetsConstPtr Root::assets() {
384 return loadMemberFunction<Assets>(m_assets, m_assetsMutex, "Assets", [this]() {
385 StringList assetDirectories = m_settings.assetDirectories;
386 assetDirectories.appendAll(m_modDirectories);
387 StringList assetSources = scanForAssetSources(assetDirectories, m_settings.assetSources);
388
389 auto assets = make_shared<Assets>(m_settings.assetsSettings, assetSources);
390 Logger::info("Assets digest is {}", hexEncode(assets->digest()));
391 return assets;
392 });
393}
394
395ConfigurationPtr Root::configuration() {
396 return loadMemberFunction<Configuration>(m_configuration, m_configurationMutex, "Configuration", [this]() {

Callers 15

SpawnerMethod · 0.80
updateAmbientMethod · 0.80
updateWeatherMethod · 0.80
BehaviorDatabaseMethod · 0.80
HumanoidTimingMethod · 0.80
makeDummyMethod · 0.80
RadioMessageDatabaseMethod · 0.80
createRadioMessageMethod · 0.80
generateNameMethod · 0.80
TileDamageParametersMethod · 0.80
constructSpawnProfileFunction · 0.80

Calls 3

hexEncodeFunction · 0.85
appendAllMethod · 0.80
digestMethod · 0.45

Tested by 6

SpeciesDatabaseMethod · 0.64
humanoidConfigMethod · 0.64
inspectMethod · 0.64
validateWorldFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64