Update UnityComponent.cs

This commit is contained in:
DCFApixels 2025-03-20 10:33:07 +08:00
parent b345fde97d
commit f05767a795

View File

@ -9,7 +9,6 @@ using UnityEngine.Scripting.APIUpdating;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS
{ {
using static EcsConsts; using static EcsConsts;
internal static class UnityComponentConsts internal static class UnityComponentConsts
{ {
internal const string UNITY_COMPONENT_NAME = "UnityComponent"; internal const string UNITY_COMPONENT_NAME = "UnityComponent";
@ -44,13 +43,7 @@ namespace DCFApixels.DragonECS
return $"UnityComponent<{typeof(T).ToMeta().TypeName}>"; return $"UnityComponent<{typeof(T).ToMeta().TypeName}>";
} }
} }
}
namespace DCFApixels.DragonECS.Unity.Generated
{
using static EcsConsts;
#region Unity Component Templates Base
[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>")]
@ -80,7 +73,11 @@ namespace DCFApixels.DragonECS.Unity.Generated
} }
} }
} }
#endregion }
namespace DCFApixels.DragonECS.Unity.ComponentTemplates
{
using static EcsConsts;
#region Unity Component Templates #region Unity Component Templates
[Serializable] [Serializable]