コード例 #1
0
ファイル: Server.cs プロジェクト: DanielEverland/Dead-Air
        public static bool Initialize()
        {
            try
            {
                ServerLog.Initialize();
                Network.ApplicationQuit += () => { OnSave?.Invoke(); };
                Session.Initialize();
                Instance.CreateServer();

                IsInitialized = true;

                ServerInitializer.Initialize();

                ServerOutput.Header("Successfully started server");
                return(true);
            }
            catch (System.Exception)
            {
                ServerOutput.HeaderError("Failed starting server");

                throw;
            }
        }