Vehicle camera lurching fix + drawdepth fix (#7783)

This commit is contained in:
Rane
2022-05-04 14:21:39 -04:00
committed by GitHub
parent d9a03c7411
commit e7aafe287d
5 changed files with 90 additions and 28 deletions

View File

@@ -48,4 +48,26 @@ namespace Content.Shared.Vehicle
/// Raised when someone honks a vehicle horn
/// </summary>
public sealed class HonkActionEvent : InstantActionEvent { }
/// <summary>
/// Raised on the rider when someone is buckled to a vehicle.
/// </summary>
[Serializable, NetSerializable]
public sealed class BuckledToVehicleEvent : EntityEventArgs
{
public EntityUid Vehicle;
public EntityUid Rider;
/// <summary>
/// Whether they were buckled or unbuckled
/// </summary>
public bool Buckling;
public BuckledToVehicleEvent(EntityUid vehicle, EntityUid rider, bool buckling)
{
Vehicle = vehicle;
Rider = rider;
Buckling = buckling;
}
}
}