Esempio n. 1
0
 public PhysicsSystem()
 {
     EntityQuery = new ComponentEntityQuery
     {
         OneSet = new List <Type>
         {
             typeof(PhysicsComponent),
         }
     };
 }
 public ParticleSystem()
 {
     EntityQuery = new ComponentEntityQuery()
     {
         OneSet = new List <Type>()
         {
             typeof(ParticleSystemComponent),
         },
     };
 }
Esempio n. 3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public InputSystem()
 {
     EntityQuery = new ComponentEntityQuery()
     {
         OneSet = new List <Type>()
         {
             typeof(KeyBindingInputComponent),
         },
     };
 }
Esempio n. 4
0
 public PhysicsSystem()
 {
     EntityQuery = new ComponentEntityQuery
     {
         AllSet = new List <Type>
         {
             typeof(PhysicsComponent),
             typeof(CollidableComponent)
         }
     };
 }
Esempio n. 5
0
 public TransformSystem()
 {
     EntityQuery = new ComponentEntityQuery()
     {
         AllSet = new List <Type>()
         {
             typeof(ITransformComponent),
         },
         ExclusionSet = new List <Type>()
         {
             typeof(SlaveMoverComponent),
         },
     };
 }
Esempio n. 6
0
 public PhysicsSystem()
 {
     EntityQuery = new ComponentEntityQuery()
     {
         AllSet = new List <Type>()
         {
             typeof(PhysicsComponent),
             typeof(ITransformComponent),
             typeof(IVelocityComponent),
         },
         ExclusionSet = new List <Type>()
         {
             typeof(SlaveMoverComponent),
         },
     };
 }
Esempio n. 7
0
        public AiSystem()
        {
            // register entity query
            EntityQuery = new ComponentEntityQuery
            {
                OneSet = new List <Type>
                {
                    typeof(AiControllerComponent),
                },
            };

            var reflectionMan = IoCManager.Resolve <IReflectionManager>();
            var processors    = reflectionMan.GetAllChildren <AiLogicProcessor>();

            foreach (var processor in processors)
            {
                var att = (AiLogicProcessorAttribute)Attribute.GetCustomAttribute(processor, typeof(AiLogicProcessorAttribute));
                if (att != null)
                {
                    _processorTypes.Add(att.SerializeName, processor);
                }
            }
        }