1
This commit is contained in:
parent
2400200453
commit
71e5161e96
@ -7,6 +7,51 @@
|
|||||||
#include "mt/Equip.h"
|
#include "mt/Equip.h"
|
||||||
#include "mt/Buff.h"
|
#include "mt/Buff.h"
|
||||||
|
|
||||||
|
struct AttrAbsPtr
|
||||||
|
{
|
||||||
|
struct AttrAbs* data;
|
||||||
|
AttrAbsPtr(AttrAbs* data) { this->data = data; };
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AttrAbs
|
||||||
|
{
|
||||||
|
list_head entry;
|
||||||
|
int attr_id;
|
||||||
|
float value;
|
||||||
|
std::shared_ptr<AttrAbsPtr> ptr;
|
||||||
|
|
||||||
|
AttrAbs(int attr_id, float value)
|
||||||
|
{
|
||||||
|
this->attr_id = attr_id;
|
||||||
|
this->value = value;
|
||||||
|
INIT_LIST_HEAD(&entry);
|
||||||
|
ptr = std::make_shared<AttrAbsPtr>(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AttrRatePtr
|
||||||
|
{
|
||||||
|
struct AttrRate* data;
|
||||||
|
AttrRatePtr(AttrRate* data) { this->data = data; };
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AttrRate
|
||||||
|
{
|
||||||
|
list_head entry;
|
||||||
|
int attr_id;
|
||||||
|
float value;
|
||||||
|
std::shared_ptr<AttrRatePtr> ptr;
|
||||||
|
|
||||||
|
AttrRate(int attr_id, float value)
|
||||||
|
{
|
||||||
|
this->attr_id = attr_id;
|
||||||
|
this->value = value;
|
||||||
|
INIT_LIST_HEAD(&entry);
|
||||||
|
ptr = std::make_shared<AttrRatePtr>(this);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct AttrAdditionPtr
|
struct AttrAdditionPtr
|
||||||
{
|
{
|
||||||
struct AttrAddition* data;
|
struct AttrAddition* data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user