com.alicizax.unity.framework/Runtime/ABase/Service/Core/AppScope.cs

30 lines
606 B
C#
Raw Normal View History

2026-03-26 10:49:41 +08:00
namespace AlicizaX
{
public static class ServiceDomainOrder
{
public const int App = -10000;
public const int Scene = -5000;
public const int Gameplay = 0;
}
2026-03-26 19:50:59 +08:00
public sealed class AppScope : IScope
{
public int Order => ServiceDomainOrder.App;
}
public sealed class SceneScope : IScope
{
public int Order => ServiceDomainOrder.Scene;
}
public sealed class GameplayScope : IScope
{
public int Order => ServiceDomainOrder.Gameplay;
2026-03-26 19:50:59 +08:00
}
public interface IScope
{
public int Order { get; }
}
2026-03-26 10:49:41 +08:00
}