MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetName

Method GetName

trinity/Particle/Tr2ParticleElementDeclaration.cpp:65–78  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Returns human-readable name for declaration element. Used for Python exposure. Return Value: Human-readable name of particle declaration element. --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

63// Human-readable name of particle declaration element.
64// --------------------------------------------------------------------------------------
65std::string Tr2ParticleElementDeclarationName::GetName() const
66{
67 if( m_type >= CUSTOM )
68 {
69 return m_name;
70 }
71 static const char* typeNames[CUSTOM] = {
72 "LIFETIME",
73 "POSITION",
74 "VELOCITY",
75 "MASS",
76 };
77 return typeNames[m_type];
78}
79
80// --------------------------------------------------------------------------------------
81// Description:

Callers 4

BindMethod · 0.45
DoSpawnMethod · 0.45
RebindMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected