OpenTTD Source: GRFPresence Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
GRFPresence Struct Reference

Information about the presence of a Grf at a certain point during gamelog history Note about missing Grfs: Changes to missing Grfs are not logged including manual removal of the Grf. More...

`#include <gamelog_internal.h>`

## Public Member Functions
| GRFPresence (const GRFConfig *gc)

## Data Fields
const GRFConfig * | gc = nullptr
| GRFConfig, if known.
bool | was_missing = false
| Grf was missing during some gameload in the past.

## Detailed Description

Information about the presence of a Grf at a certain point during gamelog history Note about missing Grfs: Changes to missing Grfs are not logged including manual removal of the Grf.

So if the gamelog tells a Grf is missing we do not know whether it was re-added or completely removed at some later point.

Definition at line 23 of file gamelog_internal.h.

## Constructor & Destructor Documentation

## ◆ GRFPresence()

GRFPresence::GRFPresence | ( | const GRFConfig * | gc | ) |
| inline

Definition at line 27 of file gamelog_internal.h.

## Field Documentation

## ◆ gc

const GRFConfig* GRFPresence::gc = nullptr

GRFConfig, if known.

Definition at line 24 of file gamelog_internal.h.

## ◆ was_missing

bool GRFPresence::was_missing = false

Grf was missing during some gameload in the past.

Definition at line 25 of file gamelog_internal.h.

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

- src/gamelog_internal.h