Ejemplo n.º 1
0
 public void Execute(Entity entity, int index, ref TComponentData component)
 {
     Target[index] = new DataWithEntity <TData> {
         Entity = entity,
         Index  = index,
         Value  = Source[index]
     };
 }
Ejemplo n.º 2
0
        public void Execute(ArchetypeChunk chunk, int chunkIndex, int firstEntityIndex)
        {
            var entities = chunk.GetNativeArray(ChunkEntityType);

            for (var i = 0; i < chunk.Count; ++i)
            {
                var index = firstEntityIndex + i;
                Target[index] = new DataWithEntity <TData> {
                    Entity = entities[i],
                    Index  = index,
                    Value  = Source[index]
                };
            }
        }
Ejemplo n.º 3
0
 public int CompareTo(DataWithEntity <TSource> other)
 {
     return(Value.CompareTo(other.Value));
 }