You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.5 KiB

6 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace IllusionPlugin
  5. {
  6. /// <summary>
  7. /// Interface for generic Illusion unity plugins. Every class that implements this will be loaded if the DLL is placed at
  8. /// data/Managed/Plugins.
  9. /// </summary>
  10. [Obsolete("When building plugins for Beat Saber, use IBeatSaberPlugin")]
  11. public interface IPlugin
  12. {
  13. /// <summary>
  14. /// Gets the name of the plugin.
  15. /// </summary>
  16. string Name { get; }
  17. /// <summary>
  18. /// Gets the version of the plugin.
  19. /// </summary>
  20. string Version { get; }
  21. /// <summary>
  22. /// Gets invoked when the application is started.
  23. /// </summary>
  24. void OnApplicationStart();
  25. /// <summary>
  26. /// Gets invoked when the application is closed.
  27. /// </summary>
  28. void OnApplicationQuit();
  29. /// <summary>
  30. /// Gets invoked whenever a level is loaded.
  31. /// </summary>
  32. /// <param name="level"></param>
  33. void OnLevelWasLoaded(int level);
  34. /// <summary>
  35. /// Gets invoked after the first update cycle after a level was loaded.
  36. /// </summary>
  37. /// <param name="level"></param>
  38. void OnLevelWasInitialized(int level);
  39. /// <summary>
  40. /// Gets invoked on every graphic update.
  41. /// </summary>
  42. void OnUpdate();
  43. /// <summary>
  44. /// Gets invoked on ever physics update.
  45. /// </summary>
  46. void OnFixedUpdate();
  47. }
  48. }