mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-22 00:04:57 +01:00
Rework the depot, warehouse and vehicle base
A consist added to the warehouse gets a name there. The crew type stays through loading a consist. The vehicle base window replaces the texture base. The depot follows consists changed on the scenarios page, also with the warehouse tab left open.
This commit is contained in:
@@ -21,6 +21,21 @@ public class ConsistTailTests
|
||||
_consist = new Consist(_catalog, new VehicleInfo(_catalog, installation.Physics));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_unit_can_join_the_one_it_is_held_to_from_either_side()
|
||||
{
|
||||
var first = Append("b111-01");
|
||||
var second = Append("b111-02");
|
||||
|
||||
Assert.False(_consist.CanJoin(first, 0));
|
||||
Assert.False(_consist.CanJoin(second, 1));
|
||||
|
||||
first.Cars[0].Coupling.Set(Coupling.WorkshopLock, true);
|
||||
|
||||
Assert.True(_consist.CanJoin(first, 0));
|
||||
Assert.True(_consist.CanJoin(second, 1));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void The_vehicle_count_counts_cars_not_units()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user