using System.Diagnostics.CodeAnalysis; using JetBrains.Annotations; namespace Robust.Shared.GameObjects; public partial class EntityManager { [Pure] public T System() where T : IEntitySystem { return _entitySystemManager.GetEntitySystem(); } [Pure] public T? SystemOrNull() where T : IEntitySystem { return _entitySystemManager.GetEntitySystemOrNull(); } public bool TrySystem([NotNullWhen(true)] out T? entitySystem) where T : IEntitySystem { return _entitySystemManager.TryGetEntitySystem(out entitySystem); } }