mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 04:34:41 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
30 lines
458 B
C++
30 lines
458 B
C++
|
|
#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;
|
|
} |