Example #1
0
        public static bool Initialize()
        {
            try
            {
                Session.Initialize();
                Instance._loadedModfiles = ModLoader.GetAllModFiles();

                Instance.CreateClient();
                Instance.SetupEvents();

                ClientInitializer.Initialize();
                return(true);
            }
            catch (System.Exception)
            {
                ClientOutput.HeaderError("Failed starting client");
                throw;
            }
        }
Example #2
0
 private void CreateModManifest()
 {
     _modFiles = ModLoader.GetAllModFiles();
     ServerInitializer.InitializeObjectReferenceManifest(_modFiles);
     ModManifest = new List <System.Guid>(_modFiles.Select(x => x.GUID));
 }