/// <summary> /// Processes the entities. /// </summary> /// <param name="context"></param> public override void Process(SimulationContext context) { foreach (var entity in Entities.Values) { ProcessEntity(context, entity); } }
public virtual void ProcessTraverse(SimulationContext context, Entity entity, T component) { ProcessEntity(context, entity, component); foreach (var child in component.Children) { ProcessTraverse(context, child.Entity, child); } ProcessedEntity(context, entity, component); }
public override void Process(SimulationContext context) { foreach (var entity in Entities.Values) { var components = GetComponents(entity); if (components.Item1.Parent == null) { ProcessTraverse(context, entity, components.Item1); } } }
/// <summary> /// Processes an entity. /// </summary> /// <param name="context"></param> /// <param name="entity"></param> /// <param name="component"></param> public virtual void ProcessedEntity(SimulationContext context, Entity entity, T component) { }
/// <summary> /// Processes the entities. /// </summary> /// <param name="context"></param> public virtual void Process(SimulationContext context) { }
public override void ProcessEntity(SimulationContext context, Entity entity, PhysicsComponent component) { //base.ProcessEntity(context, entity, component); //component.Body.Integrate(context.DeltaTime); }
public override void Process(SimulationContext context) { World.Step(context.DeltaTime); base.Process(context); }
/// <summary> /// Processes an entity. /// </summary> /// <param name="context"></param> /// <param name="entity"></param> public virtual void ProcessEntity(SimulationContext context, Entity entity) { }