public PhysicsSystem() { EntityQuery = new ComponentEntityQuery { OneSet = new List <Type> { typeof(PhysicsComponent), } }; }
public ParticleSystem() { EntityQuery = new ComponentEntityQuery() { OneSet = new List <Type>() { typeof(ParticleSystemComponent), }, }; }
/// <summary> /// Default constructor. /// </summary> public InputSystem() { EntityQuery = new ComponentEntityQuery() { OneSet = new List <Type>() { typeof(KeyBindingInputComponent), }, }; }
public PhysicsSystem() { EntityQuery = new ComponentEntityQuery { AllSet = new List <Type> { typeof(PhysicsComponent), typeof(CollidableComponent) } }; }
public TransformSystem() { EntityQuery = new ComponentEntityQuery() { AllSet = new List <Type>() { typeof(ITransformComponent), }, ExclusionSet = new List <Type>() { typeof(SlaveMoverComponent), }, }; }
public PhysicsSystem() { EntityQuery = new ComponentEntityQuery() { AllSet = new List <Type>() { typeof(PhysicsComponent), typeof(ITransformComponent), typeof(IVelocityComponent), }, ExclusionSet = new List <Type>() { typeof(SlaveMoverComponent), }, }; }
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); } } }