API Documentation
|
A program-defined unit that can be used for some specific task different from a program-wide unit. More...
#include <UnitManager.h>
Public Member Functions | |
virtual ConstPointer< Unit > | currentUnit () |
virtual ConstPointer< Unit > | currentUnit (UnitManager &manager) |
CustomUnit (const String &id, const TranslatedString &name, UnitCategory unit_type) | |
virtual ConstPointer< Unit > | defaultUnit (UnitManager &) const =0 |
virtual void | finishReadingINI (UnitManager &) |
virtual Buffer< ConstPointer< UnitOption > > | options (UnitManager &manager) const =0 |
virtual void | prepareForINI (const UnitManager &) |
virtual void | resetToDefault (UnitManager &) |
virtual void | setupINI (INIFactory &)=0 |
virtual TranslatedString | title () const |
virtual Resource< ConstPointer< Unit > > & | unitResource (UnitManager &manager)=0 |
virtual | ~CustomUnit () |
Public Attributes | |
String | id |
TranslatedString | name |
UnitCategory | unit_type |
A program-defined unit that can be used for some specific task different from a program-wide unit.
Class: BaseValues
|
inline |
|
inlinevirtual |
|
virtual |
|
virtual |
Reimplemented in ReferenceCustomUnit.
|
nodiscardpure virtual |
Implemented in BasicCustomUnit, and ReferenceCustomUnit.
|
inlinevirtual |
Reimplemented in BasicCustomUnit, and ReferenceCustomUnit.
|
nodiscardpure virtual |
Implemented in BasicCustomUnit, and ReferenceCustomUnit.
|
inlinevirtual |
Reimplemented in BasicCustomUnit, and ReferenceCustomUnit.
|
virtual |
Reimplemented in ReferenceCustomUnit.
|
pure virtual |
Implemented in BasicCustomUnit, and ReferenceCustomUnit.
|
inlinenodiscardvirtual |
Reimplemented in BasicCustomUnit.
|
nodiscardpure virtual |
Implemented in BasicCustomUnit, and ReferenceCustomUnit.
String id |
TranslatedString name |
UnitCategory unit_type |