123456789101112131415161718192021222324252627282930313233343536373839 |
- 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; }
- }
- }
|