static */
| 453 | } |
| 454 | |
| 455 | /* static */ bool ScriptOrder::AppendOrder(VehicleID vehicle_id, TileIndex destination, ScriptOrderFlags order_flags) |
| 456 | { |
| 457 | EnforceCompanyModeValid(false); |
| 458 | EnforcePrecondition(false, ScriptVehicle::IsPrimaryVehicle(vehicle_id)); |
| 459 | EnforcePrecondition(false, AreOrderFlagsValid(destination, order_flags)); |
| 460 | |
| 461 | return InsertOrder(vehicle_id, (ScriptOrder::OrderPosition)::Vehicle::Get(vehicle_id)->GetNumManualOrders(), destination, order_flags); |
| 462 | } |
| 463 | |
| 464 | /* static */ bool ScriptOrder::AppendConditionalOrder(VehicleID vehicle_id, OrderPosition jump_to) |
| 465 | { |
nothing calls this directly
no test coverage detected