DragonECS-Graphs/src/Executors/EcsJoinExecutor.cs

42 lines
973 B
C#
Raw Normal View History

2024-11-05 16:08:51 +08:00
using DCFApixels.DragonECS.Core;
using System;
2024-03-17 10:18:30 +08:00
using System.Runtime.CompilerServices;
2023-12-24 18:18:49 +08:00
namespace DCFApixels.DragonECS
{
2024-11-05 16:08:51 +08:00
public class EcsJoinExecutor : MaskQueryExecutor, IEcsWorldEventListener
2023-12-24 18:18:49 +08:00
{
2024-03-17 10:18:30 +08:00
private long _lastWorldVersion;
2023-12-24 18:18:49 +08:00
#region Properties
2024-03-17 10:18:30 +08:00
public sealed override long Version
2023-12-24 18:18:49 +08:00
{
2024-03-17 10:18:30 +08:00
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _lastWorldVersion;
2023-12-24 18:18:49 +08:00
}
2024-11-05 16:08:51 +08:00
public override bool IsCached
{
get { throw new NotImplementedException(); }
}
2023-12-24 18:18:49 +08:00
#endregion
2024-03-17 10:18:30 +08:00
#region Callbacks
protected override void OnInitialize()
2023-12-24 18:18:49 +08:00
{
}
2024-03-17 10:18:30 +08:00
protected override void OnDestroy()
2023-12-24 18:18:49 +08:00
{
}
2024-03-17 10:18:30 +08:00
public void OnWorldResize(int newSize)
2023-12-24 18:18:49 +08:00
{
}
2024-03-17 10:18:30 +08:00
public void OnReleaseDelEntityBuffer(ReadOnlySpan<int> buffer)
2023-12-24 18:18:49 +08:00
{
}
2024-03-17 10:18:30 +08:00
public void OnWorldDestroy()
2023-12-24 18:18:49 +08:00
{
}
#endregion
}
}