using LanLib.UpdateManager.Jobs.Internal; using UnityEngine.Jobs; namespace LanLib.UpdateManager.Jobs { public struct UpdateTransformJob : IInternalUpdateTransformJob where TData : struct, IUpdateTransformJob { public UnsafeNativeList Data { get; set; } public unsafe void Execute(int index, TransformAccess transform) { Data.ItemRefAt(index).Execute(transform); } } #if HAVE_BURST [Unity.Burst.BurstCompile] #endif public struct BurstUpdateTransformJob : IInternalUpdateTransformJob, IInternalBurstUpdateTransformJob where TData : struct, IUpdateTransformJob { public UnsafeNativeList Data { get; set; } public unsafe void Execute(int index, TransformAccess transform) { Data.ItemRefAt(index).Execute(transform); } } }