OpenTTD Source 20250428-master-ga5578166bb
StringParam Struct Reference

Public Types

enum  ParamType : uint8_t { UNUSED , RAW_STRING , STRING , OTHER }
 

Public Member Functions

 StringParam (ParamType type, uint8_t consumes, std::string_view cmd={})
 

Data Fields

ParamType type
 
uint8_t consumes
 
std::string_view cmd
 

Detailed Description

Definition at line 16 of file game_text.hpp.

Member Enumeration Documentation

◆ ParamType

enum StringParam::ParamType : uint8_t

Definition at line 17 of file game_text.hpp.

Constructor & Destructor Documentation

◆ StringParam()

StringParam::StringParam ( ParamType  type,
uint8_t  consumes,
std::string_view  cmd = {} 
)
inline

Definition at line 28 of file game_text.hpp.

Field Documentation

◆ cmd

std::string_view StringParam::cmd

Definition at line 26 of file game_text.hpp.

◆ consumes

uint8_t StringParam::consumes

Definition at line 25 of file game_text.hpp.

◆ type

ParamType StringParam::type

Definition at line 24 of file game_text.hpp.


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