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

Method spawnType

source/game/StarSpawnTypeDatabase.cpp:140–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140SpawnType SpawnTypeDatabase::spawnType(String const& typeName) const {
141 if (auto spawnType = m_spawnTypes.maybe(typeName))
142 return spawnType.take();
143 throw SpawnTypeDatabaseException::format("No such spawnType '{}'", typeName);
144}
145
146}

Callers 1

spawnInCellMethod · 0.80

Calls 3

formatFunction · 0.50
maybeMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected