예제 #1
0
        public Game()
        {
            Coroutines = new Coroutines();
            DependancyLocator.AddDepenancy(Coroutines);

            m_ResourceManager = new ResourceManager();
        }
예제 #2
0
        internal void Init(IPlatformAudioDevice audioDevice,
                           IPlatformGraphicsDevice graphicsDevice,
                           GameWindow window,
                           GameInput input)
        {
            Window         = window;
            Audio          = audioDevice;
            GraphicsDevice = graphicsDevice;
            Input          = input;

            m_RenderQueue = new RenderQueue(graphicsDevice);

            DependancyLocator.AddDepenancy(Window);
            DependancyLocator.AddDepenancy(Audio);
            DependancyLocator.AddDepenancy(GraphicsDevice);
            DependancyLocator.AddDepenancy(Input);
        }