예제 #1
0
        public KbScene(
            Ecosystem ecosystem,
            Keycosystem keycosystem,
            DirectiveRenderer renderer,
            FpsCounter fpsCounter)
        {
            this.Ecosystem   = ecosystem;
            this.Keycosystem = keycosystem;
            this.Renderer    = renderer;
            this.FpsCounter  = fpsCounter;

            this.Camera = renderer.GetViewport("default");
        }
예제 #2
0
        public GameSelectScene(
            Ecosystem ecosystem,
            Keycosystem keycosystem,
            Director director,
            DebugLogger debugLogger,
            DirectiveRenderer renderer,
            FpsCounter fpsCounter,
            Window window)
        {
            this.Ecosystem   = ecosystem;
            this.Keycosystem = keycosystem;
            this.Director    = director;
            this.DebugLogger = debugLogger;
            this.Renderer    = renderer;
            this.FpsCounter  = fpsCounter;
            this.Window      = window;

            this.Camera = renderer.GetViewport("default");
        }
예제 #3
0
        public TestMapScene(
            Ecosystem ecosystem,
            Keycosystem keycosystem,
            DebugLogger debugLogger,
            Director director,
            DirectiveRenderer renderer,
            FpsCounter fpsCounter,
            MessageRouter messageRouter,
            GameTimer timer)
        {
            this.Ecosystem     = ecosystem;
            this.Keycosystem   = keycosystem;
            this.DebugLogger   = debugLogger;
            this.Renderer      = renderer;
            this.FpsCounter    = fpsCounter;
            this.MessageRouter = messageRouter;
            this.Timer         = timer;

            this.PlayerPosition = messageRouter.GetPubKey <Position2d>("player-position");
            this.SubKey         = messageRouter.GetSubKey();
            this.Camera         = renderer.GetViewport("default");
        }