Definition at line 20 of file Animation.h.
◆ Animation() [1/2]
CSE::Animation::Animation |
( |
| ) |
|
|
inline |
Definition at line 22 of file Animation.h.
22 {
23 SetUndestroyable(true);
24 }
◆ Animation() [2/2]
CSE::Animation::Animation |
( |
float |
totalTime, |
|
|
std::list< KeyFrame * > |
keyframes |
|
) |
| |
|
inline |
Definition at line 26 of file Animation.h.
26 {
27 SetUndestroyable(true);
28 m_length = totalTime;
29 m_keyframes = std::move(keyframes);
30 }
◆ Exterminate()
void Animation::Exterminate |
( |
| ) |
|
|
overridevirtual |
Implements CSE::SObject.
Definition at line 16 of file Animation.cpp.
16 {
17 for(auto keyframe : m_keyframes) {
18 SAFE_DELETE(keyframe);
19 }
20 m_keyframes.clear();
21}
◆ GetKeyFrames()
std::list< KeyFrame * > CSE::Animation::GetKeyFrames |
( |
| ) |
const |
|
inline |
Definition at line 42 of file Animation.h.
42 {
43 return m_keyframes;
44 }
◆ GetLength()
float CSE::Animation::GetLength |
( |
| ) |
const |
|
inline |
Definition at line 38 of file Animation.h.
38 {
39 return m_length;
40 }
◆ Init()
Implements CSE::SResource.
Definition at line 23 of file Animation.cpp.
23 {
24 std::string parent_id = split(asset->id, '?')[0];
25 CORE->GetCore(
ResMgr)->GetAssetReference(parent_id);
26
27}
◆ SetKeyframe()
void Animation::SetKeyframe |
( |
float |
totalTime, |
|
|
std::list< KeyFrame * > |
keyframes |
|
) |
| |
Definition at line 11 of file Animation.cpp.
11 {
12 m_length = totalTime;
13 m_keyframes = std::move(keyframes);
14}
The documentation for this class was generated from the following files: