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

Function parsePersonalityArray

source/game/StarHumanoid.cpp:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30Personality parsePersonalityArray(Json const& config) {
31 return Personality{config.getString(0), config.getString(1), jsonToVec2F(config.get(2)), jsonToVec2F(config.get(3))};
32}
33
34Personality& parsePersonality(Personality& personality, Json const& config) {
35 if (auto idle = config.opt("idle"))

Callers 2

generateNpcVariantMethod · 0.85
SpeciesDefinitionMethod · 0.85

Calls 3

jsonToVec2FFunction · 0.85
getStringMethod · 0.80
getMethod · 0.45

Tested by 1

SpeciesDefinitionMethod · 0.68