blob: 7195462ec62bda81e60c5aac0ded30316d7e47bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
class SharedMonsterAttributes
{
public:
static Attribute *MAX_HEALTH;
static Attribute *FOLLOW_RANGE;
static Attribute *KNOCKBACK_RESISTANCE;
static Attribute *MOVEMENT_SPEED;
static Attribute *ATTACK_DAMAGE;
static ListTag<CompoundTag> *saveAttributes(BaseAttributeMap *attributes);
private:
static CompoundTag *saveAttribute(AttributeInstance *instance);
static CompoundTag *saveAttributeModifier(AttributeModifier *modifier);
public:
static void loadAttributes(BaseAttributeMap *attributes, ListTag<CompoundTag> *list);
private:
static void loadAttribute(AttributeInstance *instance, CompoundTag *tag);
public:
static AttributeModifier *loadAttributeModifier(CompoundTag *tag);
};
|