This repository has been archived on 2024-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
Skipper/project/Terkoiz.Skipper/SkipperPlugin.cs

35 lines
937 B
C#
Raw Normal View History

2024-04-19 18:13:14 +03:00
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using JetBrains.Annotations;
namespace Terkoiz.Skipper
{
[BepInPlugin("com.terkoiz.skipper", "Terkoiz.Skipper", "1.0.0")]
public class SkipperPlugin : BaseUnityPlugin
{
internal new static ManualLogSource Logger { get; private set; }
private const string MainSectionName = "Main";
internal static ConfigEntry<bool> ModEnabled;
[UsedImplicitly]
internal void Start()
{
Logger = base.Logger;
InitConfiguration();
new QuestObjectiveViewPatch().Enable();
}
private void InitConfiguration()
{
ModEnabled = Config.Bind(
MainSectionName,
"Enabled",
true,
"Global mod toggle. Will need to re-open the quest window for the setting change to take effect.");
}
}
}