Vixen
c7401864
csharp
public sealed class VehicleInstance

One vehicle in the world: who is in which seat.

Read the guide page for this →

Remarks

⚠ The transform half of this is blocked, and doc 28 predicted it. § Movement says mounts and vehicles are where doc 16's owed parent-relative replication stops being optional, "because a passenger replicating world coordinates fights the vehicle's own". That is item 69 in docs/overview.md and it is still owed, so nothing here touches a position: what is built is the seat model, which is the half that is not waiting on anything.

⚠ The driver leaving does not delete the vehicle or eject anybody. It becomes driverless, and a passenger may take the wheel if the definition allows. A taxi nobody may steer and a raft anybody may steer are both real, so it is a policy rather than a rule.

Fields and properties (5)

  • public Vehicle Vehicle

    What it is.

  • public int Count

    How many are aboard.

  • public bool IsEmpty

    Whether nobody is.

  • public PlayerId Driver

    Who is steering, or None.

  • public bool IsDriven

    Whether anybody is steering it.

Events (1)

  • public Action<SeatChange>? Changed

    Raised whenever somebody gets on or off.

Methods (10)

Used by (1)

  • VehicleTestsVixen.Gameplay.Movement.Tests