DragonECS-Unity/src/CodeTemplates/System.cs.txt

19 lines
457 B
Plaintext
Raw Normal View History

2023-03-29 23:59:26 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DCFApixels.DragonECS;
namespace #NAMESPACE#
{
2023-03-30 05:40:48 +08:00
public class #SCRIPTNAME# : IEcsRunSystem, IEcsInject<EcsDefaultWrold>
2023-03-29 23:59:26 +08:00
{
2023-03-30 05:40:48 +08:00
private EcsDefaultWrold _world;
public void Inject(EcsDefaultWrold obj) => _world = obj;
2023-03-29 23:59:26 +08:00
2023-03-30 05:33:35 +08:00
public void Run(EcsPipeline pipeline)
2023-03-29 23:59:26 +08:00
{
2023-03-30 05:33:35 +08:00
// will be called on each EcsPipeline.Run() call
2023-03-29 23:59:26 +08:00
}
}
}