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

Method getFacialMaskFromIdentity

source/game/StarHumanoid.cpp:1500–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1498}
1499
1500String Humanoid::getFacialMaskFromIdentity() const {
1501 if (m_identity.facialMaskType.empty())
1502 return "";
1503 return strf("/humanoid/{}/{}/{}.png",
1504 m_identity.imagePath ? *m_identity.imagePath : m_identity.species,
1505 m_identity.facialMaskGroup,
1506 m_identity.facialMaskType);
1507}
1508
1509String Humanoid::getBackArmFromIdentity() const {
1510 return strf("/humanoid/{}/backarm.png", m_identity.imagePath ? *m_identity.imagePath : m_identity.species);

Callers 1

renderMethod · 0.80

Calls 2

strfFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected