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

Method createNpc

source/game/StarNpcDatabase.cpp:321–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321NpcPtr NpcDatabase::createNpc(NpcVariant const& npcVariant) const {
322 return make_shared<Npc>(npcVariant);
323}
324
325NpcPtr NpcDatabase::diskLoadNpc(Json const& diskStore) const {
326 auto npcVariant = readNpcVariantFromJson(diskStore.get("npcVariant"));

Callers 3

spawnNpcMethod · 0.80
spawnNpcMethod · 0.80
spawnNpcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected