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

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

Additional Inherited Members

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

Detailed Description

A unit that mirrors another set unit.


Class: BaseValues

Constructor & Destructor Documentation

◆ ReferenceCustomUnit()

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

◆ ~ReferenceCustomUnit()

virtual ~ReferenceCustomUnit ( )
inlinevirtual

Member Function Documentation

◆ currentUnit()

virtual ConstPointer< Unit > currentUnit ( UnitManager & manager)
overridevirtual

Reimplemented from CustomUnit.

◆ defaultUnit()

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

Implements CustomUnit.

◆ finishReadingINI()

virtual void finishReadingINI ( UnitManager & )
inlineoverridevirtual

Reimplemented from CustomUnit.

◆ options()

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

Implements CustomUnit.

◆ prepareForINI()

virtual void prepareForINI ( const UnitManager & )
inlineoverridevirtual

Reimplemented from CustomUnit.

◆ resetToDefault()

virtual void resetToDefault ( UnitManager & )
overridevirtual

Reimplemented from CustomUnit.

◆ setupINI()

virtual void setupINI ( INIFactory & )
inlineoverridevirtual

Implements CustomUnit.

◆ unitResource()

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

Implements CustomUnit.


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