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

Method GetType

src/settings.cpp:911–915  ·  view source on GitHub ↗

* Return the type of the setting. * @return type of setting */

Source from the content-addressed store, hash-verified

909 * @return type of setting
910 */
911SettingType SettingDesc::GetType() const
912{
913 if (this->flags.Test(SettingFlag::PerCompany)) return ST_COMPANY;
914 return this->flags.Test(SettingFlag::NotInSave) ? ST_CLIENT : ST_GAME;
915}
916
917/**
918 * Get the setting description of this setting as an integer setting.

Callers 15

UpdateFilterStateMethod · 0.45
CmdInsertOrderFunction · 0.45
CmdModifyOrderFunction · 0.45
ProcessConditionalOrderFunction · 0.45
UpdateOrderDestFunction · 0.45
ProcessOrdersFunction · 0.45
DrawOrderStringFunction · 0.45
UpdateButtonStateMethod · 0.45
ReverseTrainDirectionFunction · 0.45
CheckNextTrainTileFunction · 0.45

Calls 1

TestMethod · 0.80

Tested by

no test coverage detected