swb_shared/MovementImpact.cs

A simple struct representing a temporary modifier to player movement. It stores a multiplicative Amount applied to desired velocity and a Duration as a TimeUntil to expire.

namespace SWB.Shared;

public struct MovementImpact
{
	/// <summary>Modifies the velocity (WishVelocity *= Amount) [1 = none]</summary>
	public float Amount = 1f;
	public TimeUntil Duration = 0;

	public MovementImpact() { }
}