internal override unsafe void InjectEntry(InjectionContext.Entry entry, ComponentGroup entityGroup, ref ComponentChunkIterator iterator, int length, byte *groupStructPtr)
        {
            iterator.IndexInComponentGroup = entry.IndexInComponentGroup;
            var data = new ComponentArray <Component>(iterator, length, entityGroup.ArchetypeManager);

            UnsafeUtility.CopyStructureToPtr(ref data, groupStructPtr + entry.FieldOffset);
        }
 public override void PrepareEntry(ref InjectionContext.Entry entry, ComponentGroup entityGroup)
 {
     entry.IndexInComponentGroup = entityGroup.GetIndexInComponentGroup(entry.ComponentType.TypeIndex);
 }
Exemplo n.º 3
0
 public virtual void PrepareEntry(ref InjectionContext.Entry entry, ComponentGroup entityGroup)
 {
 }
Exemplo n.º 4
0
        internal override unsafe void InjectEntry(InjectionContext.Entry entry, ComponentGroup entityGroup, ref ComponentChunkIterator iterator, int length, byte *groupStructPtr)
        {
            var gameObjectArray = entityGroup.GetGameObjectArray();

            UnsafeUtility.CopyStructureToPtr(ref gameObjectArray, groupStructPtr + entry.FieldOffset);
        }
Exemplo n.º 5
0
 internal abstract void InjectEntry(InjectionContext.Entry entry, ComponentGroup entityGroup,
                                    ref ComponentChunkIterator iterator, int length, byte *groupStructPtr);