mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 10:43:39 +00:00
20 lines
505 B
C++
20 lines
505 B
C++
#include "../../Platform/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;
|
|
} |