OpenTTD Source 20241224-master-gee860a5c8e
OptionData Struct Reference

Data of an option. More...

#include <getoptdata.h>

Data Fields

OptionDataType type
 The type of option.
 
char id
 Unique identification of this option data, often the same as shortname.
 
char shortname = '\0'
 Short option letter if available, else use '\0'.
 
const char * longname = nullptr
 Long option name including '-'/'–' prefix, use nullptr if not available.
 

Detailed Description

Data of an option.

Definition at line 21 of file getoptdata.h.

Field Documentation

◆ id

char OptionData::id

Unique identification of this option data, often the same as shortname.

Definition at line 23 of file getoptdata.h.

◆ longname

const char* OptionData::longname = nullptr

Long option name including '-'/'–' prefix, use nullptr if not available.

Definition at line 25 of file getoptdata.h.

◆ shortname

char OptionData::shortname = '\0'

Short option letter if available, else use '\0'.

Definition at line 24 of file getoptdata.h.

◆ type

OptionDataType OptionData::type

The type of option.

Definition at line 22 of file getoptdata.h.


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