Ejemplo n.º 1
0
 public static void Go()
 {
     World.Mode = MagicalLifeAPI.Networking.EngineMode.ServerOnly;
     AssetManager.IsServerOnly = true;
     FileSystemManager.Initialize();
     MasterLog.Initialize();
     ErrorReporter.Initialize();
     SettingsHandler.Initialize();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            DependencyContainer.InitializeContainer(this);
            InitializeComponent();
            Suspending         += OnSuspending;
            Resuming           += OnResuming;
            UnhandledException += OnUnhandledException;

            ErrorReporter.Initialize();
        }
Ejemplo n.º 3
0
        private static void Main()
        {
            FileSystemManager.Initialize();
            MasterLog.Initialize();
            ErrorReporter.Initialize();

            using (Game1 game = new Game1())
            {
                game.Run();
            }
        }