Files
AdventuresInLestoria/Crawler/MonsterAttribute.h
T

22 lines
412 B
C++
Raw Normal View History

2023-09-08 17:19:42 +00:00
#pragma once
2023-09-08 14:36:31 +00:00
#define VARIANTS float,int,std::string,bool
2023-09-08 17:19:42 +00:00
enum class ATTRIBUTE_TYPE{
FLOAT,
INT,
STRING,
BOOL,
};
2023-09-08 14:36:31 +00:00
struct _ATTRIBUTE{
2023-09-08 17:19:42 +00:00
ATTRIBUTE_TYPE type;
bool operator<(const _ATTRIBUTE&rhs)const{
return int(type)<int(rhs.type);
}
2023-09-08 14:36:31 +00:00
};
2023-09-08 17:19:42 +00:00
struct Attribute{
#define SETUP(attribute) static _ATTRIBUTE attribute;
SETUP(IFRAME_TIME_UPON_HIT);
SETUP(SHOOT_RING_TIMER);
2023-09-08 17:19:42 +00:00
};