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); }
public void RegisterEffect <TAssociatedComponent>(IEffectSystem system, IEffectRenderer renderer, Affects affects) { this.componentAffectsMap[typeof(TAssociatedComponent)] = affects; this.affectSystem.RegisterSystem(system); this.affectRenderSystem.RegisterRenderer(renderer); }
public static EntityComponentSet[] GetComponents <T>(this IEffectSystem <T> @this) { return(EcsManager.Get().GetEntitiesWithComponents <T>()); }
public void RegisterSystem(IEffectSystem system) { this.effectSystems.Add(system); }