swb_shared/ScreenShake.cs

Plain data class that represents a screen shake configuration. It defines Duration, Delay, Size, and Rotation properties with default zero values and KeyProperty attributes, likely used for weapon or effect settings.

namespace SWB.Shared;

public class ScreenShake
{
	/// <summary>Duration (s)</summary>
	[KeyProperty] public float Duration { get; set; } = 0f;

	/// <summary>Delay between shakes (s)</summary>
	[KeyProperty] public float Delay { get; set; } = 0f;

	/// <summary>Screen disposition amount</summary>
	[KeyProperty] public float Size { get; set; } = 0f;

	/// <summary>Screen rotation amount</summary>
	[KeyProperty] public float Rotation { get; set; } = 0f;
}