protected override EgoBundle CreateBundle(EgoComponent egoComponent)
 {
     return(new EgoBundle <C1, C2>(
                egoComponent.GetComponent <C1>(),
                egoComponent.GetComponent <C2>()
                ));
 }
Example #2
0
 protected void CreateBundle(EgoComponent egoComponent)
 {
     if (Ego.CanUpdate(_mask, egoComponent.mask))
     {
         var component1 = egoComponent.GetComponent <C1>();
         var component2 = egoComponent.GetComponent <C2>();
         CreateBundle(egoComponent, component1, component2);
     }
 }
Example #3
0
 protected void CreateBundle(EgoComponent egoComponent, C2 component2)
 {
     if (Ego.CanUpdate(_mask, egoComponent.mask))
     {
         var component1 = egoComponent.GetComponent <C1>();
         var component3 = egoComponent.GetComponent <C3>();
         var component4 = egoComponent.GetComponent <C4>();
         CreateBundle(egoComponent, component1, component2, component3, component4);
     }
 }
Example #4
0
 protected void CreateBundle(EgoComponent egoComponent, C3 component3)
 {
     if (Ego.CanUpdate(_mask, egoComponent.mask))
     {
         var component1 = egoComponent.GetComponent <C1>();
         var component2 = egoComponent.GetComponent <C2>();
         var component4 = egoComponent.GetComponent <C4>();
         var component5 = egoComponent.GetComponent <C5>();
         CreateBundle(egoComponent, component1, component2, component3, component4, component5);
     }
 }
Example #5
0
 protected void CreateBundle(EgoComponent egoComponent, C1 component1)
 {
     if (Ego.CanUpdate(_mask, egoComponent.mask))
     {
         var component2 = egoComponent.GetComponent <C2>();
         var component3 = egoComponent.GetComponent <C3>();
         var component4 = egoComponent.GetComponent <C4>();
         var component5 = egoComponent.GetComponent <C5>();
         var component6 = egoComponent.GetComponent <C6>();
         CreateBundle(egoComponent, component1, component2, component3, component4, component5, component6);
     }
 }
Example #6
0
 protected override EgoBundle CreateBundle(EgoComponent egoComponent)
 {
     return(new EgoBundle <C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(
                egoComponent.GetComponent <C1>(),
                egoComponent.GetComponent <C2>(),
                egoComponent.GetComponent <C3>(),
                egoComponent.GetComponent <C4>(),
                egoComponent.GetComponent <C5>(),
                egoComponent.GetComponent <C6>(),
                egoComponent.GetComponent <C7>(),
                egoComponent.GetComponent <C8>(),
                egoComponent.GetComponent <C9>(),
                egoComponent.GetComponent <C10>()
                ));
 }
Example #7
0
 protected void CreateBundle(EgoComponent egoComponent)
 {
     if (Ego.CanUpdate(_mask, egoComponent.mask))
     {
         var component1  = egoComponent.GetComponent <C1>();
         var component2  = egoComponent.GetComponent <C2>();
         var component3  = egoComponent.GetComponent <C3>();
         var component4  = egoComponent.GetComponent <C4>();
         var component5  = egoComponent.GetComponent <C5>();
         var component6  = egoComponent.GetComponent <C6>();
         var component7  = egoComponent.GetComponent <C7>();
         var component8  = egoComponent.GetComponent <C8>();
         var component9  = egoComponent.GetComponent <C9>();
         var component10 = egoComponent.GetComponent <C10>();
         CreateBundle(egoComponent, component1, component2, component3, component4, component5, component6, component7, component8, component9, component10);
     }
 }