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