chicken_dy/Assets/ThirdPlugins/StompyRobot/SRF/Scripts/Service/Attributes.cs

40 lines
1005 B
C#
Raw Permalink Normal View History

2022-01-26 07:46:33 +00:00
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; }
}
}