aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Attribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Attribute.cpp')
-rw-r--r--Minecraft.World/Attribute.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Minecraft.World/Attribute.cpp b/Minecraft.World/Attribute.cpp
new file mode 100644
index 00000000..7c280862
--- /dev/null
+++ b/Minecraft.World/Attribute.cpp
@@ -0,0 +1,18 @@
+#include "stdafx.h"
+#include "Attribute.h"
+
+const int Attribute::AttributeNames [] =
+{
+ IDS_ATTRIBUTE_NAME_GENERIC_MAXHEALTH,
+ IDS_ATTRIBUTE_NAME_GENERIC_FOLLOWRANGE,
+ IDS_ATTRIBUTE_NAME_GENERIC_KNOCKBACKRESISTANCE,
+ IDS_ATTRIBUTE_NAME_GENERIC_MOVEMENTSPEED,
+ IDS_ATTRIBUTE_NAME_GENERIC_ATTACKDAMAGE,
+ IDS_ATTRIBUTE_NAME_HORSE_JUMPSTRENGTH,
+ IDS_ATTRIBUTE_NAME_ZOMBIE_SPAWNREINFORCEMENTS,
+};
+
+int Attribute::getName(eATTRIBUTE_ID id)
+{
+ return AttributeNames[id];
+} \ No newline at end of file