Ejemplo n.º 1
0
        public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity)
        {
            var buffer = wrapper.AddBuffer <T>(entity);

            foreach (var item in m_elements)
            {
                buffer.Add(item);
            }
        }
Ejemplo n.º 2
0
 public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, ref EntityBuilderData data)
 {
     if (m_callback != null)
     {
         m_callback?.Invoke(wrapper);
     }
     else
     {
         var buffer = wrapper.AddBuffer <T>(data.entity);
         if (m_elements != null)
         {
             foreach (var element in m_elements)
             {
                 buffer.Add(element);
             }
         }
     }
 }