IPlugin.cs 685 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using BepInEx.Configuration;
  6. using BepInEx.Logging;
  7. namespace BepInEx.Contract
  8. {
  9. public interface IPlugin
  10. {
  11. /// <summary>
  12. /// Information about this plugin as it was loaded.
  13. /// </summary>
  14. PluginInfo Info { get; }
  15. /// <summary>
  16. /// Logger instance tied to this plugin.
  17. /// </summary>
  18. ManualLogSource Logger { get; }
  19. /// <summary>
  20. /// Default config file tied to this plugin. The config file will not be created until
  21. /// any settings are added and changed, or <see cref="ConfigFile.Save"/> is called.
  22. /// </summary>
  23. ConfigFile Config { get; }
  24. }
  25. }