the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 31 lines 478 B view raw
1#include "stdafx.h" 2 3#include "BaseAttribute.h" 4 5BaseAttribute::BaseAttribute(eATTRIBUTE_ID id, double defaultValue) 6{ 7 this->id = id; 8 this->defaultValue = defaultValue; 9 syncable = false; 10} 11 12eATTRIBUTE_ID BaseAttribute::getId() 13{ 14 return id; 15} 16 17double BaseAttribute::getDefaultValue() 18{ 19 return defaultValue; 20} 21 22bool BaseAttribute::isClientSyncable() 23{ 24 return syncable; 25} 26 27BaseAttribute *BaseAttribute::setSyncable(bool syncable) 28{ 29 this->syncable = syncable; 30 return this; 31}