Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace IllusionPlugin
- {
- /// <summary>
- /// Interface for generic Illusion unity plugins. Every class that implements this will be loaded if the DLL is placed at
- /// data/Managed/Plugins.
- /// </summary>
- public interface IPlugin
- {
- /// <summary>
- /// Gets invoked when the application is started.
- /// </summary>
- void OnApplicationStart();
- /// <summary>
- /// Gets invoked when the application is closed.
- /// </summary>
- void OnApplicationQuit();
- /// <summary>
- /// Gets invoked whenever a level is loaded.
- /// </summary>
- /// <param name="level"></param>
- void OnLevelWasLoaded(int level);
- /// <summary>
- /// Gets invoked after the first update cycle after a level was loaded.
- /// </summary>
- /// <param name="level"></param>
- void OnLevelWasInitialized(int level);
- /// <summary>
- /// Determines if a console should pop up or not. Set this to true if you want to see console output.
- /// Note that the console is only displayed in windowed mode.
- /// </summary>
- bool Debug { get; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement