the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 26 lines 713 B view raw
1#pragma once 2 3class SharedMonsterAttributes 4{ 5public: 6 static Attribute *MAX_HEALTH; 7 static Attribute *FOLLOW_RANGE; 8 static Attribute *KNOCKBACK_RESISTANCE; 9 static Attribute *MOVEMENT_SPEED; 10 static Attribute *ATTACK_DAMAGE; 11 12 static ListTag<CompoundTag> *saveAttributes(BaseAttributeMap *attributes); 13 14private: 15 static CompoundTag *saveAttribute(AttributeInstance *instance); 16 static CompoundTag *saveAttributeModifier(AttributeModifier *modifier); 17 18public: 19 static void loadAttributes(BaseAttributeMap *attributes, ListTag<CompoundTag> *list); 20 21private: 22 static void loadAttribute(AttributeInstance *instance, CompoundTag *tag); 23 24public: 25 static AttributeModifier *loadAttributeModifier(CompoundTag *tag); 26};