Ejemplo n.º 1
0
        public Scene()
        {
            Entities = new EntityMap(this);
            Systems  = new SystemMap(this);
            Sprites  = new SpriteSet();
            Events   = new EventManager();

            Entities.Changed += NotifyEntityChange;
            CurrentViewport   = new CameraView();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates and initializes a scene for the given controller
        /// </summary>
        /// <param name="controller"></param>
        public Scene(IGameController controller)
        {
            Controller = controller;

            Entities = new EntityMap(this);
            Systems  = new SystemMap(this);
            Events   = new EventManager();

            Entities.Changed += NotifyEntityChange;
            CurrentViewport   = new CameraView();
        }