mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 10:04:36 +08:00
25 lines
610 B
C#
25 lines
610 B
C#
#if DISABLE_DEBUG
|
|
#undef DEBUG
|
|
#endif
|
|
using DCFApixels.DragonECS.Unity;
|
|
using UnityEngine;
|
|
|
|
namespace DCFApixels.DragonECS
|
|
{
|
|
using static EcsConsts;
|
|
|
|
[MetaName("MonoBehaviourSystem")]
|
|
[MetaColor(MetaColor.DragonCyan)]
|
|
[MetaDescription(AUTHOR, "Wrapper for MonoBehaviour systems")]
|
|
[MetaID("2877029E9201347B4F58E1EC0A4BCD1B")]
|
|
[MetaGroup(EcsUnityConsts.PACK_GROUP, OTHER_GROUP)]
|
|
public class MonoBehaviourSystemWrapper : IEcsModule
|
|
{
|
|
public MonoBehaviour system;
|
|
public void Import(EcsPipeline.Builder b)
|
|
{
|
|
b.Add(system);
|
|
}
|
|
}
|
|
}
|