public NativeList(RNA rna, IntPtr first, Entity entity) { this.rna = rna; this.first = first; rnaDelegate = RNA <T> .GetDelegate(rna, entity); }
public NativeArray(RNA rna, Entity entity, IntPtr ptr, int count) { this.rna = rna; Ptr = ptr; Count = count; if (entity != null) { rnaDelegate = RNA <T> .GetDelegate(rna, entity); ElementSize = entity.Size; } else { rnaDelegate = RNA <T> .GetCopyDelegate(); ElementSize = Marshal.SizeOf(typeof(T)); } }
public NativePointer(RNA rna, Entity entity, IntPtr ptr) { this.rna = rna; Ptr = ptr; rnaDelegate = RNA <T> .GetDelegate(rna, entity); }