static */
| 68 | } |
| 69 | |
| 70 | /* static */ bool ScriptRail::IsRailTypeAvailable(RailType rail_type) |
| 71 | { |
| 72 | EnforceDeityOrCompanyModeValid(false); |
| 73 | if ((::RailType)rail_type >= RAILTYPE_END) return false; |
| 74 | |
| 75 | return ScriptCompanyMode::IsDeity() || ::HasRailTypeAvail(ScriptObject::GetCompany(), (::RailType)rail_type); |
| 76 | } |
| 77 | |
| 78 | /* static */ ScriptRail::RailType ScriptRail::GetCurrentRailType() |
| 79 | { |
nothing calls this directly
no test coverage detected