CSEngine
Loading...
Searching...
No Matches
Animation.cpp
1//
2// Created by ounols on 19. 9. 15.
3//
4
5#include "Animation.h"
6#include "../Loader/DAE/DAELoader.h"
7#include "../../Manager/EngineCore.h"
8#include "../MoreString.h"
9
10using namespace CSE;
11
12RESOURCE_CONSTRUCTOR(Animation) {
13 SetUndestroyable(true);
14}
15
16void Animation::SetKeyframe(float totalTime, std::list<KeyFrame*> keyframes) {
17 m_length = totalTime;
18 m_keyframes = std::move(keyframes);
19}
20
21void Animation::Exterminate() {
22 for(auto keyframe : m_keyframes) {
23 SAFE_DELETE(keyframe);
24 }
25 m_keyframes.clear();
26}
27
28void Animation::Init(const AssetMgr::AssetReference* asset) {
29 std::string parent_id = split(asset->id, '?')[0];
30 CORE->GetCore(ResMgr)->GetAssetReference(parent_id);
31}
32
33void Animation::SetValue(std::string name_str, VariableBinder::Arguments value) {
34}
35
36std::string Animation::PrintValue() const {
37 return {};
38}
void SetValue(std::string name_str, Arguments value) override
Definition Animation.cpp:33