Exemplo n.º 1
0
 public WcR2Engine(GraphicsDevice graphicsDevice, int nativeScreenWidth, int nativeScreenHeight)
 {
     _renderer     = new WcR2Renderer(graphicsDevice, nativeScreenWidth, nativeScreenHeight);
     _assetManager = new WcR2AssetManager();
     _audioDevice  = new WcR2AudioDevice();
     _inputDevice  = new MonoGameInputDevice();
 }
Exemplo n.º 2
0
        public WcR2Engine(GraphicsDevice graphicsDevice, int nativeScreenWidth, int nativeScreenHeight)
        {
            _renderer     = new WcR2Renderer(graphicsDevice, nativeScreenWidth, nativeScreenHeight);
            _assetManager = new WcR2AssetManager();
            _audioDevice  = new WcR2AudioDevice();
            _inputDevice  = new MonoGameInputDevice();

            if (ServiceManager.Instance.GetService <IClipboardService>() == null)
            {
                ServiceManager.Instance.AddService <IClipboardService>(new ClipBoardService());
            }
        }