mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
32 lines
667 B
C#
32 lines
667 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DCFApixels.DragonECS
|
|
{
|
|
public class TestSystem :
|
|
IReceive<_OnInject<SharedData>>,
|
|
IDo<_Init>, IDo<_Run>, IDo<_Destroy>
|
|
{
|
|
private SharedData _sharedData;
|
|
void IReceive<_OnInject<SharedData>>.Do(EcsSession session, in _OnInject<SharedData> m) => _sharedData = m.data;
|
|
|
|
|
|
void IDo<_Init>.Do(EcsSession session)
|
|
{
|
|
}
|
|
|
|
void IDo<_Run>.Do(EcsSession session)
|
|
{
|
|
|
|
}
|
|
|
|
void IDo<_Destroy>.Do(EcsSession session)
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|