You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using UnityEngine.Scripting;
|
|
|
|
|
|
|
|
|
|
namespace SRF.Service
|
|
|
|
|
{
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
|
|
|
public sealed class ServiceAttribute : PreserveAttribute
|
|
|
|
|
{
|
|
|
|
|
public ServiceAttribute(Type serviceType)
|
|
|
|
|
{
|
|
|
|
|
ServiceType = serviceType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Type ServiceType { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
public sealed class ServiceSelectorAttribute : PreserveAttribute
|
|
|
|
|
{
|
|
|
|
|
public ServiceSelectorAttribute(Type serviceType)
|
|
|
|
|
{
|
|
|
|
|
ServiceType = serviceType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Type ServiceType { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
public sealed class ServiceConstructorAttribute : PreserveAttribute
|
|
|
|
|
{
|
|
|
|
|
public ServiceConstructorAttribute(Type serviceType)
|
|
|
|
|
{
|
|
|
|
|
ServiceType = serviceType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Type ServiceType { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|