MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetDriverParamBool

Function GetDriverParamBool

src/driver.cpp:67–70  ·  view source on GitHub ↗

* Get a boolean parameter the list of parameters. * @param parm The parameters. * @param name The parameter name we're looking for. * @return The parameter value. */

Source from the content-addressed store, hash-verified

65 * @return The parameter value.
66 */
67bool GetDriverParamBool(const StringList &parm, std::string_view name)
68{
69 return GetDriverParam(parm, name).has_value();
70}
71
72/**
73 * Get an integer parameter the list of parameters.

Callers 3

StartMethod · 0.85
StartMethod · 0.85
StartMethod · 0.85

Calls 1

GetDriverParamFunction · 0.85

Tested by

no test coverage detected