using LanLib.UpdateManager.Jobs.Internal; namespace LanLib.UpdateManager.Jobs { public struct UpdateJob : IInternalUpdateJob where TData : struct, IUpdateJob { public UnsafeNativeList Data { get; set; } public unsafe void Execute(int index) { Data.ItemRefAt(index).Execute(); } } #if HAVE_BURST [Unity.Burst.BurstCompile] #endif public struct BurstUpdateJob : IInternalUpdateJob, IInternalBurstUpdateJob where TData : struct, IUpdateJob { public UnsafeNativeList Data { get; set; } public unsafe void Execute(int index) { Data.ItemRefAt(index).Execute(); } } }