add inheriting for meta color & group

This commit is contained in:
DCFApixels 2025-03-23 19:21:36 +08:00
parent 948b026299
commit 22747a4a22

View File

@ -4,16 +4,11 @@ using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Scripting.APIUpdating;
namespace DCFApixels.DragonECS
{
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]
[MetaColor(MetaColor.DragonCyan)]
[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)]
[MetaGroup(EcsUnityConsts.PACK_GROUP, OTHER_GROUP)]
[MetaDescription(AUTHOR, "Template for UnityComponent<T>")]