OpenTTD Source 20261112-master-gbcbec5e63f
TimerGameTick::TPeriod Struct Reference

Public Member Functions

 TPeriod (Priority priority, uint value)
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

Priority priority
uint value

Detailed Description

Definition at line 35 of file timer_game_tick.h.

Constructor & Destructor Documentation

◆ TPeriod()

TimerGameTick::TPeriod::TPeriod ( Priority priority,
uint value )
inline

Definition at line 39 of file timer_game_tick.h.

Member Function Documentation

◆ operator<=>()

auto TimerGameTick::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 47 of file timer_game_tick.h.

◆ operator==()

bool TimerGameTick::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 59 of file timer_game_tick.h.

Field Documentation

◆ priority

Priority TimerGameTick::TPeriod::priority

Definition at line 36 of file timer_game_tick.h.

◆ value

uint TimerGameTick::TPeriod::value

Definition at line 37 of file timer_game_tick.h.


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