mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
add inheriting for meta color & group
This commit is contained in:
parent
948b026299
commit
22747a4a22
@ -4,16 +4,11 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Scripting.APIUpdating;
|
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
using static EcsConsts;
|
using static EcsConsts;
|
||||||
internal static class UnityComponentConsts
|
|
||||||
{
|
|
||||||
internal const string UNITY_COMPONENT_NAME = "UnityComponent";
|
|
||||||
public static readonly MetaGroup BaseGroup = new MetaGroup(UNITY_COMPONENT_NAME);
|
|
||||||
}
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
[MetaColor(MetaColor.DragonCyan)]
|
[MetaColor(MetaColor.DragonCyan)]
|
||||||
[MetaGroup(EcsUnityConsts.PACK_GROUP, COMPONENTS_GROUP)]
|
[MetaGroup(EcsUnityConsts.PACK_GROUP, COMPONENTS_GROUP)]
|
||||||
@ -41,6 +36,11 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static class UnityComponentConsts
|
||||||
|
{
|
||||||
|
internal const string UNITY_COMPONENT_NAME = "UnityComponent";
|
||||||
|
public static readonly MetaGroup BaseGroup = MetaGroup.FromName(UNITY_COMPONENT_NAME);
|
||||||
|
}
|
||||||
[MetaColor(MetaColor.DragonCyan)]
|
[MetaColor(MetaColor.DragonCyan)]
|
||||||
[MetaGroup(EcsUnityConsts.PACK_GROUP, OTHER_GROUP)]
|
[MetaGroup(EcsUnityConsts.PACK_GROUP, OTHER_GROUP)]
|
||||||
[MetaDescription(AUTHOR, "Template for UnityComponent<T>")]
|
[MetaDescription(AUTHOR, "Template for UnityComponent<T>")]
|
||||||
|
Loading…
Reference in New Issue
Block a user