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

Public Member Functions

 TPeriod (std::chrono::milliseconds period, Trigger trigger)
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

std::chrono::milliseconds period
Trigger trigger

Detailed Description

Definition at line 37 of file timer_game_realtime.h.

Constructor & Destructor Documentation

◆ TPeriod()

TimerGameRealtime::TPeriod::TPeriod ( std::chrono::milliseconds period,
Trigger trigger )
inline

Definition at line 41 of file timer_game_realtime.h.

Member Function Documentation

◆ operator<=>()

auto TimerGameRealtime::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 48 of file timer_game_realtime.h.

◆ operator==()

bool TimerGameRealtime::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_realtime.h.

Field Documentation

◆ period

std::chrono::milliseconds TimerGameRealtime::TPeriod::period

Definition at line 38 of file timer_game_realtime.h.

◆ trigger

Trigger TimerGameRealtime::TPeriod::trigger

Definition at line 39 of file timer_game_realtime.h.


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