2024-10-12 14:37:21 +08:00
|
|
|
|
using DCFApixels.DragonECS.Unity;
|
|
|
|
|
using UnityEngine;
|
2024-10-05 18:27:06 +08:00
|
|
|
|
|
|
|
|
|
namespace DCFApixels.DragonECS
|
|
|
|
|
{
|
2024-10-18 17:22:02 +08:00
|
|
|
|
[MetaName("MonoBehaviourSystem")]
|
2024-10-05 18:27:06 +08:00
|
|
|
|
[MetaColor(MetaColor.DragonCyan)]
|
2024-10-18 17:22:02 +08:00
|
|
|
|
[MetaDescription("Wrapper for MonoBehaviour systems")]
|
|
|
|
|
[MetaID("2877029E9201347B4F58E1EC0A4BCD1B")]
|
2024-10-12 14:37:21 +08:00
|
|
|
|
[MetaGroup(EcsUnityConsts.PACK_GROUP, EcsConsts.OTHER_GROUP)]
|
2024-10-18 17:22:02 +08:00
|
|
|
|
public class MonoBehaviourSystemWrapper : IEcsModule
|
2024-10-05 18:27:06 +08:00
|
|
|
|
{
|
2024-10-18 17:22:02 +08:00
|
|
|
|
public MonoBehaviour system;
|
2024-10-05 18:27:06 +08:00
|
|
|
|
public void Import(EcsPipeline.Builder b)
|
|
|
|
|
{
|
|
|
|
|
b.Add(system);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|