AdventuresInLestoria/Crawler/MonsterAttribute.h
Nic0Nic0Nii 9a367d3386 Implement custom attributes for monsters.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2023-09-08 14:36:31 +00:00

20 lines
406 B
C++

#define VARIANTS float,int,std::string,bool
#define CREATE_ATTRIBUTE(variable,type) _ATTRIBUTE variable{Attribute::TYPE::type};
namespace Attribute{
enum class TYPE{
FLOAT,
INT,
STRING,
BOOL,
};
}
struct _ATTRIBUTE{
Attribute::TYPE type;
};
namespace Attribute{
CREATE_ATTRIBUTE(IFRAME_TIME_UPON_HIT,FLOAT);
CREATE_ATTRIBUTE(SHOOT_RING_TIMER,FLOAT);
}