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 | |
BasicCustomUnit (const String &name, const TranslatedString &title, UnitCategory type) | |
virtual ConstPointer< Unit > | defaultUnit (UnitManager &) const override |
virtual void | finishReadingINI (UnitManager &manager) override |
Buffer< ConstPointer< UnitOption > > | options (UnitManager &manager) const override |
virtual void | prepareForINI (const UnitManager &manager) override |
virtual void | setupINI (INIFactory &ini) override |
virtual TranslatedString | title () const override |
virtual Resource< ConstPointer< Unit > > & | unitResource (UnitManager &manager) override |
Public Member Functions inherited from CustomUnit | |
virtual ConstPointer< Unit > | currentUnit () |
virtual ConstPointer< Unit > | currentUnit (UnitManager &manager) |
CustomUnit (const String &id, const TranslatedString &name, UnitCategory unit_type) | |
virtual void | resetToDefault (UnitManager &) |
virtual | ~CustomUnit () |
Protected Attributes | |
String | m_ini_unit_name |
TranslatedString | m_title |
Resource< ConstPointer< Unit > > | m_unit |
Additional Inherited Members | |
Public Attributes inherited from CustomUnit | |
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
BasicCustomUnit | ( | const String & | name, |
const TranslatedString & | title, | ||
UnitCategory | type ) |
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
overridevirtual |
Reimplemented from CustomUnit.
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
overridevirtual |
Reimplemented from CustomUnit.
|
overridevirtual |
Implements CustomUnit.
|
inlinenodiscardoverridevirtual |
Reimplemented from CustomUnit.
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
protected |
|
protected |
|
protected |