SboxSuperuser/Api/ICommandServices.cs

Interface defining a contract for retrieving sandbox-approved game services. It exposes a single generic GetService<T>() method that returns a service instance or null and forbids creating fallback implementations.

namespace SboxSuperuser;

/// <summary>Host-approved game capabilities; implementations must expose only explicitly approved services.</summary>
public interface ICommandServices
{
	/// <summary>Returns an approved service, or null when unavailable; never constructs a fallback implementation.</summary>
	T GetService<T>() where T : class;
}