swb_shared/MovementImpact.cs

A small shared struct representing a temporary movement modifier. It stores a multiplicative Amount applied to wish velocity and a Duration (TimeUntil) after which the effect ends.

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() { }
}