Definition at line 20 of file Animation.h.
◆ Animation()
CSE::Animation::Animation |
( |
float | totalTime, |
|
|
std::list< KeyFrame * > | keyframes ) |
|
inline |
Definition at line 24 of file Animation.h.
25 SetUndestroyable(true);
26 m_length = totalTime;
27 m_keyframes = std::move(keyframes);
28 }
◆ Exterminate()
void Animation::Exterminate |
( |
| ) |
|
|
overridevirtual |
Implements CSE::SObject.
Definition at line 21 of file Animation.cpp.
21 {
22 for(auto keyframe : m_keyframes) {
23 SAFE_DELETE(keyframe);
24 }
25 m_keyframes.clear();
26}
◆ GetKeyFrames()
std::list< KeyFrame * > CSE::Animation::GetKeyFrames |
( |
| ) |
const |
|
inline |
Definition at line 40 of file Animation.h.
40 {
41 return m_keyframes;
42 }
◆ GetLength()
float CSE::Animation::GetLength |
( |
| ) |
const |
|
inline |
Definition at line 36 of file Animation.h.
36 {
37 return m_length;
38 }
◆ Init()
Implements CSE::SResource.
Definition at line 28 of file Animation.cpp.
28 {
29 std::string parent_id = split(asset->id, '?')[0];
30 CORE->GetCore(
ResMgr)->GetAssetReference(parent_id);
31}
◆ PrintValue()
std::string Animation::PrintValue |
( |
| ) |
const |
|
overridevirtual |
◆ SetKeyframe()
void Animation::SetKeyframe |
( |
float | totalTime, |
|
|
std::list< KeyFrame * > | keyframes ) |
Definition at line 16 of file Animation.cpp.
16 {
17 m_length = totalTime;
18 m_keyframes = std::move(keyframes);
19}
◆ SetValue()
void Animation::SetValue |
( |
std::string | name_str, |
|
|
Arguments | value ) |
|
overridevirtual |
Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.
- Parameters
-
name_str | Name of values |
value | Serialized values |
Implements CSE::VariableBinder.
Definition at line 33 of file Animation.cpp.
The documentation for this class was generated from the following files: