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 | |
CustomUnit (const String &id, const TranslatedString &name, UnitType unit_type) | |
virtual | ~CustomUnit () |
virtual TranslatedString | title () const |
virtual Resource< ConstPointer< Unit > > & | unitResource (UnitManager &manager)=0 |
virtual Buffer< ConstPointer< UnitOption > > | options (UnitManager &manager) const =0 |
virtual void | prepareForINI (const UnitManager &) |
virtual void | setupINI (INIFactory &)=0 |
virtual void | resetToDefault (UnitManager &) |
virtual void | finishReadingINI (UnitManager &) |
virtual ConstPointer< Unit > | currentUnit () |
virtual ConstPointer< Unit > | currentUnit (UnitManager &manager) |
virtual ConstPointer< Unit > | defaultUnit (UnitManager &) const =0 |
Public Attributes | |
TranslatedString | name |
String | id |
UnitType | 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 |
UnitType unit_type |