AdventuresInLestoria/Crawler/MonsterAttribute.h

22 lines
412 B
C
Raw Normal View History

#pragma once
#define VARIANTS float,int,std::string,bool
enum class ATTRIBUTE_TYPE{
FLOAT,
INT,
STRING,
BOOL,
};
struct _ATTRIBUTE{
ATTRIBUTE_TYPE type;
bool operator<(const _ATTRIBUTE&rhs)const{
return int(type)<int(rhs.type);
}
};
struct Attribute{
#define SETUP(attribute) static _ATTRIBUTE attribute;
SETUP(IFRAME_TIME_UPON_HIT);
SETUP(SHOOT_RING_TIMER);
};