OpenTTD Source 20260711-master-g3fb3006dff
GRFLocation Struct Reference

A location within a NewGRF, like file:line but in the context of NewGRFs. More...

#include <newgrf_internal.h>

Public Member Functions

constexpr auto operator<=> (const GRFLocation &other) const =default
 Compare with another location.

Data Fields

GrfID grfid
 Identifier of the NewGRF this refers to.
uint32_t nfoline
 The line of NFO this refers to.

Detailed Description

A location within a NewGRF, like file:line but in the context of NewGRFs.

Definition at line 201 of file newgrf_internal.h.

Member Function Documentation

◆ operator<=>()

auto GRFLocation::operator<=> ( const GRFLocation & other) const
constexprdefault

Compare with another location.

Parameters
otherThe other location to compare to.
Returns
The std::strong_ordering of the comparison.

Field Documentation

◆ grfid

GrfID GRFLocation::grfid

Identifier of the NewGRF this refers to.

Definition at line 202 of file newgrf_internal.h.

◆ nfoline

uint32_t GRFLocation::nfoline

The line of NFO this refers to.

Definition at line 203 of file newgrf_internal.h.


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