OpenTTD Source 20260711-master-g3fb3006dff
GRFIdentifier Struct Reference

Basic data to distinguish a GRF. More...

#include <newgrf_config.h>

Inheritance diagram for GRFIdentifier:
LoggedChangeGRFAdd LoggedChangeGRFChanged

Public Member Functions

bool HasGrfIdentifier (GrfID grfid, const MD5Hash *md5sum) const
 Does the identification match the provided values?

Data Fields

GrfID grfid
 GRF ID (defined by Action 0x08).
MD5Hash md5sum
 MD5 checksum of file to distinguish files with the same GRF ID (eg. newer version of GRF).

Detailed Description

Basic data to distinguish a GRF.

Used in the server list window

Definition at line 87 of file newgrf_config.h.

Member Function Documentation

◆ HasGrfIdentifier()

bool GRFIdentifier::HasGrfIdentifier ( GrfID grfid,
const MD5Hash * md5sum ) const
inline

Does the identification match the provided values?

Parameters
grfidExpected grfid.
md5sumExpected md5sum, may be nullptr (in which case, do not check it).
Returns
the object has the provided grfid and md5sum.

Definition at line 97 of file newgrf_config.h.

References grfid, and md5sum.

Field Documentation

◆ grfid

◆ md5sum


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