12345678910111213141516171819202122232425262728293031323334353637383940 |
- using BepInEx.Configuration;
- using BepInEx.Logging;
- using UnityEngine;
- namespace BepInEx
- {
-
-
-
- public abstract class BaseUnityPlugin : MonoBehaviour
- {
-
-
-
- public BepInPlugin Metadata { get; }
-
-
-
- protected ManualLogSource Logger { get; }
-
-
-
-
- protected ConfigFile Config { get; }
-
-
-
- protected BaseUnityPlugin()
- {
- Metadata = MetadataHelper.GetMetadata(this);
- Logger = Logging.Logger.CreateLogSource(Metadata.Name);
- Config = new ConfigFile(Utility.CombinePaths(Paths.ConfigPath, Metadata.GUID + ".cfg"), false, this);
- }
- }
- }
|