예제 #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            content = AionLevelViewerImpl.CreateLevelViewer(GraphicsDevice, Services, m_gameDir, m_levelFolder);
            content.SetProjection(GraphicsDevice.PresentationParameters.BackBufferWidth, GraphicsDevice.PresentationParameters.BackBufferHeight);

            content.OnChangeMouseVisibilityRequest +=
                (sender, vis) => { IsMouseVisible = vis; };
            content.OnExitRequest +=
                (sender, e) => { Exit(); };
        }
예제 #2
0
 protected override void Initialize()
 {
     if (m_game == null)
     {
         if (m_cgf != null)
         {
             m_game = AionLevelViewerImpl.CreateCgfViewer(GraphicsDevice, Services, m_cgf);
         }
         else
         {
             m_game = AionLevelViewerImpl.CreateLevelViewer(GraphicsDevice, Services, m_aionClientRoot, m_levelFolder);
         }
     }
     base.Initialize();
 }
예제 #3
0
 public AionLevelViewerControl(AionLevelViewerImpl game)
 {
     m_game = game;
 }