Example #1
0
        public ScreenGenerationTester(ScreenManager screenManager) : base(screenManager)
        {
            _camera = new Camera2D(screenManager.Graphics.GraphicsDevice)
            {
                FollowingHero = true
            };

            _ecs = new ECS(_camera);
            _ecs.StartupRoutine(ecsBootRoutine.Presenting);
            _debugDrawer = new DebugDrawer(_ecs);

            _levelGenerator.ApplyPreset(LevelPreset.Forest);
        }
Example #2
0
 public InputAttackSubsystem(ECS ecs)
 {
     _ecs = ecs;
 }
 public static void RegisterECS(ECS ecs)
 {
     _ecs = ecs;
 }
Example #4
0
 public InputSystem(ECS ecs, Camera2D camera)
 {
     _ecs             = ecs;
     _camera          = camera;
     _attackSubsystem = new InputAttackSubsystem(ecs);
 }
Example #5
0
 public StateSystem(ECS ecs)
 {
     _ecs = ecs;
 }
Example #6
0
 public DebugDrawer(ECS ecs)
 {
     Ecs = ecs;
     RegisterSystems();
 }