static */
| 129 | } |
| 130 | |
| 131 | /* static */ SQInteger ScriptEngine::GetMaxAge(EngineID engine_id) |
| 132 | { |
| 133 | if (!IsValidEngine(engine_id)) return -1; |
| 134 | if (GetVehicleType(engine_id) == ScriptVehicle::VT_RAIL && IsWagon(engine_id)) return -1; |
| 135 | |
| 136 | return ::Engine::Get(engine_id)->GetLifeLengthInDays().base(); |
| 137 | } |
| 138 | |
| 139 | /* static */ Money ScriptEngine::GetRunningCost(EngineID engine_id) |
| 140 | { |
nothing calls this directly
no test coverage detected