Exemple #1
0
 public bool Get(Entity e, out T component)
 {
     for (int i = 0; i < additionsCount; ++i)
     {
         ref AddComponentEvent <T> ace = ref additions[i];
         if (ace.Entity == e)
         {
             component = ace.Component;
             return(true);
         }
     }
Exemple #2
0
 public void Add(AddComponentEvent <T> e)
 {
     additions[additionsCount++] = e;
 }