LevelEditor.Game1.Initialize C# (CSharp) Méthode

Initialize() protected méthode

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
Résultat void
        protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, _graphics);

            IsMouseVisible = true;

            GuiData.Initialize();

            AvailableAssetTypes.Initialize(FileManager.RelativeDirectory + "Content/ContentTypes.csv");

            #region Set up resizing

            Renderer.UseRenderTargets = false;

            #endregion

            try
            {
                RemotingServer.SetupPort(9426);
                RemotingServer.SetupInterface<SelectionInterface>();
                RemotingServer.SetupInterface<RegisterInterface>();
            }
            catch(Exception e)
            {
                System.Windows.Forms.MessageBox.Show(@"Level Editor could not start, please make sure Level Editor is not already running on your computer 
 
 Exception: 
"+e);
                FlatRedBallServices.Game.Exit(); 
            }

            
            GluxManager.ContentManagerName = "LevelEditor";


            EditorLogic.Initialize();
            
            
            base.Initialize();
        }