/// <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(); }; }
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(); }
public AionLevelViewerControl(AionLevelViewerImpl game) { m_game = game; }