Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 private void CreateModManifest()
 {
     _modFiles = ModLoader.GetAllModFiles();
     ServerInitializer.InitializeObjectReferenceManifest(_modFiles);
     ModManifest = new List <System.Guid>(_modFiles.Select(x => x.GUID));
 }