add MetaGroupAttributes

This commit is contained in:
Mikhail 2024-04-29 22:06:19 +08:00
parent a53ce3cd50
commit d87e0fa948
3 changed files with 11 additions and 0 deletions

View File

@ -6,24 +6,28 @@ namespace DCFApixels.DragonECS
{ {
[MetaName(nameof(PreInit))] [MetaName(nameof(PreInit))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IEcsPreInit : IEcsProcess public interface IEcsPreInit : IEcsProcess
{ {
void PreInit(); void PreInit();
} }
[MetaName(nameof(Init))] [MetaName(nameof(Init))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IEcsInit : IEcsProcess public interface IEcsInit : IEcsProcess
{ {
void Init(); void Init();
} }
[MetaName(nameof(Run))] [MetaName(nameof(Run))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IEcsRun : IEcsProcess public interface IEcsRun : IEcsProcess
{ {
void Run(); void Run();
} }
[MetaName(nameof(Destroy))] [MetaName(nameof(Destroy))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IEcsDestroy : IEcsProcess public interface IEcsDestroy : IEcsProcess
{ {
void Destroy(); void Destroy();
@ -38,6 +42,7 @@ namespace DCFApixels.DragonECS.Internal
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
internal sealed class EcsPreInitRunner : EcsRunner<IEcsPreInit>, IEcsPreInit internal sealed class EcsPreInitRunner : EcsRunner<IEcsPreInit>, IEcsPreInit
{ {
#if DEBUG && !DISABLE_DEBUG #if DEBUG && !DISABLE_DEBUG
@ -93,6 +98,7 @@ namespace DCFApixels.DragonECS.Internal
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
internal sealed class EcsInitRunner : EcsRunner<IEcsInit>, IEcsInit internal sealed class EcsInitRunner : EcsRunner<IEcsInit>, IEcsInit
{ {
#if DEBUG && !DISABLE_DEBUG #if DEBUG && !DISABLE_DEBUG
@ -145,6 +151,7 @@ namespace DCFApixels.DragonECS.Internal
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
internal sealed class EcsRunRunner : EcsRunner<IEcsRun>, IEcsRun internal sealed class EcsRunRunner : EcsRunner<IEcsRun>, IEcsRun
{ {
#if DEBUG && !DISABLE_DEBUG #if DEBUG && !DISABLE_DEBUG
@ -197,6 +204,7 @@ namespace DCFApixels.DragonECS.Internal
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
internal sealed class EcsDestroyRunner : EcsRunner<IEcsDestroy>, IEcsDestroy internal sealed class EcsDestroyRunner : EcsRunner<IEcsDestroy>, IEcsDestroy
{ {
#if DEBUG && !DISABLE_DEBUG #if DEBUG && !DISABLE_DEBUG

View File

@ -497,6 +497,7 @@ namespace DCFApixels.DragonECS
#region SystemsLayerMarkerSystem #region SystemsLayerMarkerSystem
[MetaTags(MetaTags.HIDDEN)] [MetaTags(MetaTags.HIDDEN)]
[MetaColor(MetaColor.Black)] [MetaColor(MetaColor.Black)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public class SystemsLayerMarkerSystem : IEcsProcess public class SystemsLayerMarkerSystem : IEcsProcess
{ {
public readonly string name; public readonly string name;

View File

@ -6,12 +6,14 @@ namespace DCFApixels.DragonECS
{ {
[MetaName(nameof(Inject))] [MetaName(nameof(Inject))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IEcsInject<T> : IEcsProcess public interface IEcsInject<T> : IEcsProcess
{ {
void Inject(T obj); void Inject(T obj);
} }
[MetaName(nameof(OnInitInjectionComplete))] [MetaName(nameof(OnInitInjectionComplete))]
[MetaColor(MetaColor.Orange)] [MetaColor(MetaColor.Orange)]
[MetaGroup(EcsConsts.FRAMEWORK_NAME)]
public interface IOnInitInjectionComplete : IEcsProcess public interface IOnInitInjectionComplete : IEcsProcess
{ {
void OnInitInjectionComplete(); void OnInitInjectionComplete();