SboxSuperuser/Api/NativePersistence.cs

An enum that selects which system owns persistence for a native setting. It has three values: Session (lives only for current engine session), Engine (engine's Saved flag controls persistence), and Framework (the framework stores and reapplies the value across runtimes).

namespace SboxSuperuser;

/// <summary>Chooses exactly one owner for an explicitly bound native setting.</summary>
public enum NativePersistence
{
	/// <summary>The value lasts only for the current engine session.</summary>
	Session,
	/// <summary>The engine's Saved flag owns persistence; the framework never stores a desired value.</summary>
	Engine,
	/// <summary>The framework stores and reapplies the value when the binding module is first started in a new runtime.</summary>
	Framework
}