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