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

Method staticAnimation

source/game/StarAiDatabase.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74Animation AiDatabase::staticAnimation(String const& species) const {
75 auto staticAnimation = m_animationConfig.staticAnimation;
76 staticAnimation.setTag("image", m_speciesParameters.get(species).staticFrames);
77 staticAnimation.setColor(Color::rgbaf(1.0f, 1.0f, 1.0f, m_animationConfig.staticOpacity));
78 return staticAnimation;
79}
80
81Animation AiDatabase::scanlineAnimation() const {
82 auto animation = m_animationConfig.scanlineAnimation;

Callers 1

AiInterfaceMethod · 0.80

Calls 3

setTagMethod · 0.80
getMethod · 0.45
setColorMethod · 0.45

Tested by

no test coverage detected