A fork of Eusth's IPA
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.

149 lines
3.1KB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using UnityEngine;
  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 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 on every graphic update.
  31. /// </summary>
  32. void OnUpdate();
  33. /// <summary>
  34. /// Gets invoked on ever physics update.
  35. /// </summary>
  36. void OnFixedUpdate();
  37. void OnAnimatorIK(int layerIndex);
  38. void OnAnimatorMove();
  39. void OnApplicationFocus(bool hasFocus);
  40. void OnApplicationPause(bool pauseStatus);
  41. void OnAudioFilterRead(float[] data, int channels);
  42. void OnBecameInvisible();
  43. void OnBecameVisible();
  44. void OnBeforeTransformParentChanged();
  45. void OnCanvasGroupChanged();
  46. void OnCanvasHierarchyChanged();
  47. void OnCollisionEnter(Collision other);
  48. void OnCollisionEnter2D(Collision2D other);
  49. void OnCollisionExit(Collision other);
  50. void OnCollisionExit2D(Collision2D other);
  51. void OnCollisionStay(Collision other);
  52. void OnCollisionStay2D(Collision2D other);
  53. void OnConnectedToServer();
  54. void OnControllerColliderHit(ControllerColliderHit hit);
  55. void OnDidApplyAnimationProperties();
  56. void OnDisable();
  57. void OnDrawGizmos();
  58. void OnDrawGizmosSelected();
  59. void OnEnable();
  60. void OnGUI();
  61. void OnJointBreak(float breakForce);
  62. void OnMouseDown();
  63. void OnMouseDrag();
  64. void OnMouseEnter();
  65. void OnMouseExit();
  66. void OnMouseOver();
  67. void OnMouseUp();
  68. void OnMouseUpAsButton();
  69. void OnParticleCollision(GameObject other);
  70. void OnPostRender();
  71. void OnPreCull();
  72. void OnPreRender();
  73. void OnRectTransformDimensionsChange();
  74. void OnRenderImage(RenderTexture src, RenderTexture dest);
  75. void OnRenderObject();
  76. void OnServerInitialized();
  77. void OnTransformChildrenChanged();
  78. void OnTransformParentChanged();
  79. void OnTriggerEnter(Collider other);
  80. void OnTriggerEnter2D(Collider2D other);
  81. void OnTriggerExit(Collider other);
  82. void OnTriggerExit2D(Collider2D other);
  83. void OnTriggerStay(Collider other);
  84. void OnTriggerStay2D(Collider2D other);
  85. void OnValidate();
  86. void OnWillRenderObject();
  87. void Reset();
  88. }
  89. }