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

Method readAsset

source/game/StarDungeonImagePart.cpp:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace Dungeon {
11
12 void ImagePartReader::readAsset(String const& asset) {
13 auto assets = Root::singleton().assets();
14 m_images.push_back(make_pair(asset, assets->image(asset)));
15 }
16
17 Vec2U ImagePartReader::size() const {
18 if (m_images.empty())

Callers

nothing calls this directly

Calls 4

singletonClass · 0.85
assetsMethod · 0.80
push_backMethod · 0.45
imageMethod · 0.45

Tested by

no test coverage detected