mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add MetaGroupAttributes
This commit is contained in:
parent
a53ce3cd50
commit
d87e0fa948
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user