OpenTTD Source 20261123-master-g1c55c72fd0
TimerGame< T >::TPeriod Struct Reference

Public Member Functions

 TPeriod (Trigger trigger, Priority priority)
constexpr auto operator<=> (const TPeriod &other) const noexcept
 Compare with another instance of this class.
constexpr bool operator== (const TPeriod &other) const noexcept
 Compare with another instance of this class.

Data Fields

Trigger trigger
Priority priority

Detailed Description

template<class T>
struct TimerGame< T >::TPeriod

Definition at line 125 of file timer_game_common.h.

Constructor & Destructor Documentation

◆ TPeriod()

template<class T>
TimerGame< T >::TPeriod::TPeriod ( Trigger trigger,
Priority priority )
inline

Definition at line 129 of file timer_game_common.h.

Member Function Documentation

◆ operator<=>()

template<class T>
auto TimerGame< T >::TPeriod::operator<=> ( const TPeriod & other) const
inlineconstexprnoexcept

Compare with another instance of this class.

Parameters
otherThe other instance.
Returns
The std::strong_ordering of the comparison.

Definition at line 137 of file timer_game_common.h.

◆ operator==()

template<class T>
bool TimerGame< T >::TPeriod::operator== ( const TPeriod & other) const
inlineconstexprnoexcept

Compare with another instance of this class.

Parameters
otherThe other instance.
Returns
true iff the other instance matches this value.

Definition at line 148 of file timer_game_common.h.

Field Documentation

◆ priority

template<class T>
Priority TimerGame< T >::TPeriod::priority

Definition at line 127 of file timer_game_common.h.

◆ trigger

template<class T>
Trigger TimerGame< T >::TPeriod::trigger

Definition at line 126 of file timer_game_common.h.


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