-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKeyFrameEvent.h
More file actions
34 lines (32 loc) · 925 Bytes
/
Copy pathKeyFrameEvent.h
File metadata and controls
34 lines (32 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "Reflection.hpp" // CT3: was transitive via Core.Minimal.h
#include "Core.Minimal.h"
class KeyFrameEvent
{
public:
static consteval auto reflect()
{
using Self = KeyFrameEvent;
return meta::schema<Self>(
meta::field<&Self::m_eventName>,
meta::field<&Self::m_scriptName>,
meta::field<&Self::m_funName>,
meta::field<&Self::key>,
meta::field<&Self::frameKey>);
}
public:
KeyFrameEvent() = default;
~KeyFrameEvent() {};
bool operator==(const KeyFrameEvent& other) const
{
return m_eventName == other.m_eventName &&
m_scriptName == other.m_scriptName &&
m_funName == other.m_funName &&
std::abs(key - other.key) < 0.0001f; //오차
}
std::string m_eventName = "NoneE";
std::string m_scriptName = "NoneS";
std::string m_funName = "NoneF";
float key = 0;
int frameKey = 1; //애니메이션 프레임 int값
};