mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 04:18:14 +05:00
31 lines
478 B
C++
31 lines
478 B
C++
#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;
|
|
} |