aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BaseAttribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/BaseAttribute.cpp')
-rw-r--r--Minecraft.World/BaseAttribute.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/Minecraft.World/BaseAttribute.cpp b/Minecraft.World/BaseAttribute.cpp
new file mode 100644
index 00000000..ae7d32f7
--- /dev/null
+++ b/Minecraft.World/BaseAttribute.cpp
@@ -0,0 +1,31 @@
+#include "stdafx.h"
+
+#include "BaseAttribute.h"
+
+BaseAttribute::BaseAttribute(eATTRIBUTE_ID id, double defaultValue)
+{
+ this->id = id;
+ this->defaultValue = defaultValue;
+ syncable = false;
+}
+
+eATTRIBUTE_ID BaseAttribute::getId()
+{
+ return id;
+}
+
+double BaseAttribute::getDefaultValue()
+{
+ return defaultValue;
+}
+
+bool BaseAttribute::isClientSyncable()
+{
+ return syncable;
+}
+
+BaseAttribute *BaseAttribute::setSyncable(bool syncable)
+{
+ this->syncable = syncable;
+ return this;
+} \ No newline at end of file