API Documentation
Loading...
Searching...
No Matches
ReferenceCustomUnit Class Reference

A unit that mirrors another set unit. More...

#include <UnitManager.h>

Inheritance diagram for ReferenceCustomUnit:
[legend]
Collaboration diagram for ReferenceCustomUnit:
[legend]

Public Member Functions

 ReferenceCustomUnit (const String &id, const TranslatedString &name, UnitType unit_type)
 
virtual ~ReferenceCustomUnit ()
 
virtual Resource< ConstPointer< Unit > > & unitResource (UnitManager &manager) override
 
virtual Buffer< ConstPointer< UnitOption > > options (UnitManager &manager) const override
 
virtual void prepareForINI (const UnitManager &) override
 
virtual void setupINI (INIFactory &) override
 
virtual void resetToDefault (UnitManager &) override
 
virtual void finishReadingINI (UnitManager &) override
 
virtual ConstPointer< UnitcurrentUnit (UnitManager &manager) override
 
virtual ConstPointer< UnitdefaultUnit (UnitManager &) const override
 
- Public Member Functions inherited from CustomUnit
 CustomUnit (const String &id, const TranslatedString &name, UnitType unit_type)
 
virtual ~CustomUnit ()
 
virtual TranslatedString title () const
 
virtual ConstPointer< UnitcurrentUnit ()
 

Additional Inherited Members

- Public Attributes inherited from CustomUnit
TranslatedString name
 
String id
 
UnitType unit_type
 

Detailed Description

A unit that mirrors another set unit.


Class: BaseValues

autotoc_md476

Constructor & Destructor Documentation

◆ ReferenceCustomUnit()

ReferenceCustomUnit ( const String & id,
const TranslatedString & name,
UnitType unit_type )
inline

◆ ~ReferenceCustomUnit()

virtual ~ReferenceCustomUnit ( )
inlinevirtual

Member Function Documentation

◆ currentUnit()

ConstPointer< Unit > currentUnit ( UnitManager & manager)
overridevirtual

Reimplemented from CustomUnit.

◆ defaultUnit()

ConstPointer< Unit > defaultUnit ( UnitManager & manager) const
nodiscardoverridevirtual

Implements CustomUnit.

◆ finishReadingINI()

virtual void finishReadingINI ( UnitManager & )
inlineoverridevirtual

Reimplemented from CustomUnit.

◆ options()

Buffer< ConstPointer< UnitOption > > options ( UnitManager & manager) const
nodiscardoverridevirtual

Implements CustomUnit.

◆ prepareForINI()

virtual void prepareForINI ( const UnitManager & )
inlineoverridevirtual

Reimplemented from CustomUnit.

◆ resetToDefault()

void resetToDefault ( UnitManager & manager)
overridevirtual

Reimplemented from CustomUnit.

◆ setupINI()

virtual void setupINI ( INIFactory & )
inlineoverridevirtual

Implements CustomUnit.

◆ unitResource()

Resource< ConstPointer< Unit > > & unitResource ( UnitManager & manager)
nodiscardoverridevirtual

Implements CustomUnit.


The documentation for this class was generated from the following files: