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

View File

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

View File

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