OpenTTD Source: CommandInfo Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
CommandInfo Struct Reference

Define a command with the flags which belongs to it. More...

## Data Fields
const char * | name
| A human readable name for the procedure.
CommandFlags | flags
| The (command) flags to that apply to this command.
CommandType | type
| The type of command.

## Detailed Description

Define a command with the flags which belongs to it.

This struct connects a command handler function with the flags created with the CMD_AUTO, CMD_OFFLINE and CMD_SERVER values.

Definition at line 76 of file command.cpp.

## Field Documentation

## ◆ flags

CommandFlags CommandInfo::flags

The (command) flags to that apply to this command.

Definition at line 78 of file command.cpp.

## ◆ name

const char* CommandInfo::name

A human readable name for the procedure.

Definition at line 77 of file command.cpp.

## ◆ type

CommandType CommandInfo::type

The type of command.

Definition at line 79 of file command.cpp.

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

- src/command.cpp