Esempio n. 1
0
 /// <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)
 {
 }
Esempio n. 6
0
 public override void ProcessEntity(SimulationContext context, Entity entity, PhysicsComponent component)
 {
     //base.ProcessEntity(context, entity, component);
     //component.Body.Integrate(context.DeltaTime);
 }
Esempio n. 7
0
 public override void Process(SimulationContext context)
 {
     World.Step(context.DeltaTime);
     base.Process(context);
 }
Esempio n. 8
0
 /// <summary>
 /// Processes an entity.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="entity"></param>
 public virtual void ProcessEntity(SimulationContext context, Entity entity)
 {
 }