Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace IllusionPlugin
  6. {
  7.     /// <summary>
  8.     /// Interface for generic Illusion unity plugins. Every class that implements this will be loaded if the DLL is placed at
  9.     /// data/Managed/Plugins.
  10.     /// </summary>
  11.     public interface IPlugin
  12.     {
  13.         /// <summary>
  14.         /// Gets invoked when the application is started.
  15.         /// </summary>
  16.         void OnApplicationStart();
  17.  
  18.         /// <summary>
  19.         /// Gets invoked when the application is closed.
  20.         /// </summary>
  21.         void OnApplicationQuit();
  22.  
  23.         /// <summary>
  24.         /// Gets invoked whenever a level is loaded.
  25.         /// </summary>
  26.         /// <param name="level"></param>
  27.         void OnLevelWasLoaded(int level);
  28.  
  29.         /// <summary>
  30.         /// Gets invoked after the first update cycle after a level was loaded.
  31.         /// </summary>
  32.         /// <param name="level"></param>
  33.         void OnLevelWasInitialized(int level);
  34.  
  35.         /// <summary>
  36.         /// Determines if a console should pop up or not. Set this to true if you want to see console output.
  37.         /// Note that the console is only displayed in windowed mode.
  38.         /// </summary>
  39.         bool Debug { get; }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement