![]() |
API Documentation
|
A definition of how to describe a particular set of data to a custom category of unit. More...
#include <UnitManager.h>
Public Member Functions | |
| BasicUnitOption (const ConstPointer< Unit > &unit, const TranslatedString &custom_title=TranslatedString()) | |
| virtual Buffer< ConstPointer< UnitOption > > & | editSubOptions () |
| virtual bool | hasMemberUnit (const ConstPointer< Unit > &unit) const final override |
| virtual Buffer< ConstPointer< UnitOption > > | subOptions () const final override |
| virtual TranslatedString | title () const final override |
| virtual ConstPointer< Unit > | unit () const final override |
Public Member Functions inherited from UnitOption | |
| virtual ConstPointer< Unit > | unit (const ConstPointer< Unit > &) const |
| UnitOption (const String &id, const TranslatedString &name) | |
| virtual | ~UnitOption () |
Public Attributes | |
| ConstPointer< Unit > | base_unit |
| TranslatedString | custom_title |
Public Attributes inherited from UnitOption | |
| String | id |
| TranslatedString | name |
Protected Attributes | |
| Buffer< ConstPointer< UnitOption > > | m_sub_options |
A definition of how to describe a particular set of data to a custom category of unit.
|
inline |
|
inlinevirtual |
|
finaloverridevirtual |
Implements UnitOption.
|
inlinefinaloverridevirtual |
Reimplemented from UnitOption.
|
finaloverridevirtual |
Reimplemented from UnitOption.
|
inlinefinaloverridevirtual |
Implements UnitOption.
| ConstPointer<Unit> base_unit |
| TranslatedString custom_title |
|
protected |