protected System(Universe <TTriggerType, TTriggerData> universe) { Universe = universe; }
protected ComponentSystem(Universe <TTriggerType, TTriggerData> universe) : base(universe) { }
protected EntitySystem(Universe <TTriggerType, TTriggerData> universe) : base(universe) { }
public override void Trigger(TTriggerType trigger, TTriggerData data) { Universe.GetEntities().ForAll(entity => OnTrigger(trigger, data, entity)); }
public override void Trigger(TTriggerType trigger, TTriggerData data) { Universe.GetComponents <TComponent>() .ForAll(component => OnTrigger(trigger, data, component as TComponent)); }