2026-03-26 10:49:41 +08:00
|
|
|
namespace AlicizaX
|
|
|
|
|
{
|
2026-03-31 17:25:20 +08:00
|
|
|
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
|
|
|
|
|
{
|
2026-03-31 17:25:20 +08:00
|
|
|
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
|
|
|
}
|