MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / GetSequence

Method GetSequence

src/Nazara/Utility/Animation.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 Sequence* Animation::GetSequence(const String& sequenceName)
151 {
152 NazaraAssert(m_impl, "Animation not created");
153
154 auto it = m_impl->sequenceMap.find(sequenceName);
155 if (it == m_impl->sequenceMap.end())
156 {
157 NazaraError("Sequence not found");
158 return nullptr;
159 }
160
161 return &m_impl->sequences[it->second];
162 }
163
164 Sequence* Animation::GetSequence(UInt32 index)
165 {

Callers 2

SetSequenceMethod · 0.80
mainFunction · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected