AdventuresInLestoria/Crawler/MonsterAttribute.cpp

11 lines
387 B
C++
Raw Normal View History

#include "MonsterAttribute.h"
#define SETUP(attribute,type) _ATTRIBUTE attribute{ATTRIBUTE_TYPE::type};
SETUP(Attribute::IFRAME_TIME_UPON_HIT,FLOAT);
SETUP(Attribute::SHOOT_RING_TIMER,FLOAT);
SETUP(Attribute::SHOOT_RING_DELAY,FLOAT);
SETUP(Attribute::SHOOT_RING_COUNTER,FLOAT);
int _ATTRIBUTE::internal_id=0;
_ATTRIBUTE::_ATTRIBUTE(ATTRIBUTE_TYPE type)
:type(type),id(internal_id++){}