Ejemplo n.º 1
0
 public void RegisterSystems()
 {
     _drawSystem          = Ecs.GetSystem <DrawSystem>();
     _collisionSystem     = Ecs.GetSystem <CollisionSystem>();
     _collisionComponents = _collisionSystem.GetCollisionComponents();
     _movementComponents  = Ecs.GetSystem <MovementSystem>().GetMovementComponents();
 }
Ejemplo n.º 2
0
        private void CreateSystems(ecsBootRoutine routine)
        {
            _drawSystem = new DrawSystem(_camera);

            _systemSet.Add(new StateSystem(this));

            _systemSet.Add(new InputSystem(this, _camera));
            _systemSet.Add(new BlinkingSystem());
            _systemSet.Add(new MovementSystem());
            _systemSet.Add(new CollisionSystem());
            _systemSet.Add(new TimerSystem());
            _systemSet.Add(new HealthSystem());
            _systemSet.Add(new IntelligenceSystem());

            _systemSet.Add(new AnimationSystem());
            _systemSet.Add(_drawSystem);
        }