Beispiel #1
0
 public static void RegisterEffect <TComponent1, TComponent2>(this IEffectApi @this, IEffectSystem system, IEffectRenderer renderer, Affects affects)
 {
     @this.RegisterEffect <TComponent1>(system, renderer, affects);
     @this.RegisterEffect <TComponent2>(affects);
 }
Beispiel #2
0
 public void RegisterEffect <TAssociatedComponent>(IEffectSystem system, IEffectRenderer renderer, Affects affects)
 {
     this.componentAffectsMap[typeof(TAssociatedComponent)] = affects;
     this.affectSystem.RegisterSystem(system);
     this.affectRenderSystem.RegisterRenderer(renderer);
 }
Beispiel #3
0
 public static EntityComponentSet[] GetComponents <T>(this IEffectSystem <T> @this)
 {
     return(EcsManager.Get().GetEntitiesWithComponents <T>());
 }
Beispiel #4
0
 public void RegisterSystem(IEffectSystem system)
 {
     this.effectSystems.Add(system);
 }