The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'! https://forums.lestoria.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
AdventuresInLestoria/Crawler/MonsterAttribute.h

29 lines
562 B

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