Beispiel #1
0
        private void InitializeECS()
        {
            // Initialize ECS
            _world = new EcsWorld();

            _systems = new EcsSystems(_world);

            _renderingSystems = new EcsSystems(_world, "Rendering Systems");
            _renderingSystems.Add(new SpriteRenderingSystem(graphics, GraphicsDevice));


            _gameplaySystems = new EcsSystems(_world, "Gameplay Systems");
            _gameplaySystems.Add(_timingSystem = new TimingSystem());
            _gameplaySystems.Add(new StateSystem());
            _gameplaySystems.Add(new InputSystem());
            _gameplaySystems.Add(new PaddleMovementSystem());
            _gameplaySystems.Add(new MovementSystem());
            _gameplaySystems.Add(new CollisionSystem());
            _gameplaySystems.Add(new BrickBreakingSystem());
            _gameplaySystems.Add(new CameraShakeSystem());
            _gameplaySystems.Add(new BallBounceSystem());

            _systems.Add(_renderingSystems);
            _systems.Add(_gameplaySystems);

            _systems.Initialize();
        }
Beispiel #2
0
        public void Destroy()
        {
            _timmingSystem.Detach(this);

            // release references
            _callback = null;
            _tSystem  = null;
        }
    public void Init()
    {
        constructionSystem = new ConstructionSystem(this);

        countSystem = new CountSystem(this);

        motionSystem = new MotionSystem(this);

        timingststem = new TimingSystem(this);
    }
Beispiel #4
0
 public Event(ulong eventId, ulong clubId, string location, DateTime startTime, int testCount, int maxAttemptsPerTest, string regulations, EventType eventType, string maps, TimingSystem timingSystem)
 {
     EventId            = eventId;
     ClubId             = clubId;
     Location           = location;
     StartTime          = startTime;
     TestCount          = testCount;
     MaxAttemptsPerTest = maxAttemptsPerTest;
     Regulations        = regulations;
     EventType          = eventType;
     Maps         = maps;
     TimingSystem = timingSystem;
 }
 public SimService()
 {
     arrivalSim = new ArrivalSim();
     timingSim  = new TimingSystem();
     ctRepo     = new ControlTowerRepository();
 }