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.

324 lines
18 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Interface IBeatSaberPlugin
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IBeatSaberPlugin
  11. ">
  12. <meta name="generator" content="docfx 2.42.4.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../index.html">
  33. <img id="logo" class="svg" src="../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="IPA.IBeatSaberPlugin">
  63. <h1 id="IPA_IBeatSaberPlugin" data-uid="IPA.IBeatSaberPlugin" class="text-break">Interface IBeatSaberPlugin
  64. </h1>
  65. <div class="markdown level0 summary"><p>Interface for Beat Saber plugins. Every class that implements this will be loaded if the DLL is placed at
  66. data/Managed/Plugins.</p>
  67. </div>
  68. <div class="markdown level0 conceptual"></div>
  69. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.html">IPA</a></h6>
  70. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  71. <h5 id="IPA_IBeatSaberPlugin_syntax">Syntax</h5>
  72. <div class="codewrapper">
  73. <pre><code class="lang-csharp hljs">public interface IBeatSaberPlugin</code></pre>
  74. </div>
  75. <h3 id="methods">Methods
  76. </h3>
  77. <span class="small pull-right mobile-hide">
  78. <span class="divider">|</span>
  79. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnActiveSceneChanged_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene_.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnActiveSceneChanged(UnityEngine.SceneManagement.Scene%2CUnityEngine.SceneManagement.Scene)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  80. </span>
  81. <span class="small pull-right mobile-hide">
  82. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L52">View Source</a>
  83. </span>
  84. <a id="IPA_IBeatSaberPlugin_OnActiveSceneChanged_" data-uid="IPA.IBeatSaberPlugin.OnActiveSceneChanged*"></a>
  85. <h4 id="IPA_IBeatSaberPlugin_OnActiveSceneChanged_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene_" data-uid="IPA.IBeatSaberPlugin.OnActiveSceneChanged(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene)">OnActiveSceneChanged(Scene, Scene)</h4>
  86. <div class="markdown level1 summary"><p>Gets invoked whenever a scene is changed</p>
  87. </div>
  88. <div class="markdown level1 conceptual"></div>
  89. <h5 class="decalaration">Declaration</h5>
  90. <div class="codewrapper">
  91. <pre><code class="lang-csharp hljs">void OnActiveSceneChanged(Scene prevScene, Scene nextScene)</code></pre>
  92. </div>
  93. <h5 class="parameters">Parameters</h5>
  94. <table class="table table-bordered table-striped table-condensed">
  95. <thead>
  96. <tr>
  97. <th>Type</th>
  98. <th>Name</th>
  99. <th>Description</th>
  100. </tr>
  101. </thead>
  102. <tbody>
  103. <tr>
  104. <td><span class="xref">UnityEngine.SceneManagement.Scene</span></td>
  105. <td><span class="parametername">prevScene</span></td>
  106. <td><p>The Scene that was previously loaded</p>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td><span class="xref">UnityEngine.SceneManagement.Scene</span></td>
  111. <td><span class="parametername">nextScene</span></td>
  112. <td><p>The Scene being loaded</p>
  113. </td>
  114. </tr>
  115. </tbody>
  116. </table>
  117. <span class="small pull-right mobile-hide">
  118. <span class="divider">|</span>
  119. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnApplicationQuit.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnApplicationQuit%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  120. </span>
  121. <span class="small pull-right mobile-hide">
  122. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L22">View Source</a>
  123. </span>
  124. <a id="IPA_IBeatSaberPlugin_OnApplicationQuit_" data-uid="IPA.IBeatSaberPlugin.OnApplicationQuit*"></a>
  125. <h4 id="IPA_IBeatSaberPlugin_OnApplicationQuit" data-uid="IPA.IBeatSaberPlugin.OnApplicationQuit">OnApplicationQuit()</h4>
  126. <div class="markdown level1 summary"><p>Gets invoked when the application is closed.</p>
  127. </div>
  128. <div class="markdown level1 conceptual"></div>
  129. <h5 class="decalaration">Declaration</h5>
  130. <div class="codewrapper">
  131. <pre><code class="lang-csharp hljs">void OnApplicationQuit()</code></pre>
  132. </div>
  133. <span class="small pull-right mobile-hide">
  134. <span class="divider">|</span>
  135. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnApplicationStart.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnApplicationStart%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  136. </span>
  137. <span class="small pull-right mobile-hide">
  138. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L17">View Source</a>
  139. </span>
  140. <a id="IPA_IBeatSaberPlugin_OnApplicationStart_" data-uid="IPA.IBeatSaberPlugin.OnApplicationStart*"></a>
  141. <h4 id="IPA_IBeatSaberPlugin_OnApplicationStart" data-uid="IPA.IBeatSaberPlugin.OnApplicationStart">OnApplicationStart()</h4>
  142. <div class="markdown level1 summary"><p>Gets invoked when the application is started.</p>
  143. <p>THIS EVENT WILL NOT BE GUARANTEED TO FIRE. USE Init OR <a class="xref" href="IPA.IDisablablePlugin.html#IPA_IDisablablePlugin_OnEnable">OnEnable()</a> INSTEAD.</p>
  144. </div>
  145. <div class="markdown level1 conceptual"></div>
  146. <h5 class="decalaration">Declaration</h5>
  147. <div class="codewrapper">
  148. <pre><code class="lang-csharp hljs">void OnApplicationStart()</code></pre>
  149. </div>
  150. <span class="small pull-right mobile-hide">
  151. <span class="divider">|</span>
  152. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnFixedUpdate.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnFixedUpdate%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  153. </span>
  154. <span class="small pull-right mobile-hide">
  155. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L32">View Source</a>
  156. </span>
  157. <a id="IPA_IBeatSaberPlugin_OnFixedUpdate_" data-uid="IPA.IBeatSaberPlugin.OnFixedUpdate*"></a>
  158. <h4 id="IPA_IBeatSaberPlugin_OnFixedUpdate" data-uid="IPA.IBeatSaberPlugin.OnFixedUpdate">OnFixedUpdate()</h4>
  159. <div class="markdown level1 summary"><p>Gets invoked on ever physics update.</p>
  160. </div>
  161. <div class="markdown level1 conceptual"></div>
  162. <h5 class="decalaration">Declaration</h5>
  163. <div class="codewrapper">
  164. <pre><code class="lang-csharp hljs">void OnFixedUpdate()</code></pre>
  165. </div>
  166. <span class="small pull-right mobile-hide">
  167. <span class="divider">|</span>
  168. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnSceneLoaded_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode_.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnSceneLoaded(UnityEngine.SceneManagement.Scene%2CUnityEngine.SceneManagement.LoadSceneMode)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  169. </span>
  170. <span class="small pull-right mobile-hide">
  171. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L39">View Source</a>
  172. </span>
  173. <a id="IPA_IBeatSaberPlugin_OnSceneLoaded_" data-uid="IPA.IBeatSaberPlugin.OnSceneLoaded*"></a>
  174. <h4 id="IPA_IBeatSaberPlugin_OnSceneLoaded_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode_" data-uid="IPA.IBeatSaberPlugin.OnSceneLoaded(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode)">OnSceneLoaded(Scene, LoadSceneMode)</h4>
  175. <div class="markdown level1 summary"><p>Gets invoked whenever a scene is loaded.</p>
  176. </div>
  177. <div class="markdown level1 conceptual"></div>
  178. <h5 class="decalaration">Declaration</h5>
  179. <div class="codewrapper">
  180. <pre><code class="lang-csharp hljs">void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)</code></pre>
  181. </div>
  182. <h5 class="parameters">Parameters</h5>
  183. <table class="table table-bordered table-striped table-condensed">
  184. <thead>
  185. <tr>
  186. <th>Type</th>
  187. <th>Name</th>
  188. <th>Description</th>
  189. </tr>
  190. </thead>
  191. <tbody>
  192. <tr>
  193. <td><span class="xref">UnityEngine.SceneManagement.Scene</span></td>
  194. <td><span class="parametername">scene</span></td>
  195. <td><p>The scene currently loaded</p>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td><span class="xref">UnityEngine.SceneManagement.LoadSceneMode</span></td>
  200. <td><span class="parametername">sceneMode</span></td>
  201. <td><p>The type of loading</p>
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <span class="small pull-right mobile-hide">
  207. <span class="divider">|</span>
  208. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnSceneUnloaded_UnityEngine_SceneManagement_Scene_.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnSceneUnloaded(UnityEngine.SceneManagement.Scene)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  209. </span>
  210. <span class="small pull-right mobile-hide">
  211. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L45">View Source</a>
  212. </span>
  213. <a id="IPA_IBeatSaberPlugin_OnSceneUnloaded_" data-uid="IPA.IBeatSaberPlugin.OnSceneUnloaded*"></a>
  214. <h4 id="IPA_IBeatSaberPlugin_OnSceneUnloaded_UnityEngine_SceneManagement_Scene_" data-uid="IPA.IBeatSaberPlugin.OnSceneUnloaded(UnityEngine.SceneManagement.Scene)">OnSceneUnloaded(Scene)</h4>
  215. <div class="markdown level1 summary"><p>Gets invoked whenever a scene is unloaded</p>
  216. </div>
  217. <div class="markdown level1 conceptual"></div>
  218. <h5 class="decalaration">Declaration</h5>
  219. <div class="codewrapper">
  220. <pre><code class="lang-csharp hljs">void OnSceneUnloaded(Scene scene)</code></pre>
  221. </div>
  222. <h5 class="parameters">Parameters</h5>
  223. <table class="table table-bordered table-striped table-condensed">
  224. <thead>
  225. <tr>
  226. <th>Type</th>
  227. <th>Name</th>
  228. <th>Description</th>
  229. </tr>
  230. </thead>
  231. <tbody>
  232. <tr>
  233. <td><span class="xref">UnityEngine.SceneManagement.Scene</span></td>
  234. <td><span class="parametername">scene</span></td>
  235. <td><p>The unloaded scene</p>
  236. </td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. <span class="small pull-right mobile-hide">
  241. <span class="divider">|</span>
  242. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin_OnUpdate.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin.OnUpdate%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  243. </span>
  244. <span class="small pull-right mobile-hide">
  245. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L27">View Source</a>
  246. </span>
  247. <a id="IPA_IBeatSaberPlugin_OnUpdate_" data-uid="IPA.IBeatSaberPlugin.OnUpdate*"></a>
  248. <h4 id="IPA_IBeatSaberPlugin_OnUpdate" data-uid="IPA.IBeatSaberPlugin.OnUpdate">OnUpdate()</h4>
  249. <div class="markdown level1 summary"><p>Gets invoked on every graphic update.</p>
  250. </div>
  251. <div class="markdown level1 conceptual"></div>
  252. <h5 class="decalaration">Declaration</h5>
  253. <div class="codewrapper">
  254. <pre><code class="lang-csharp hljs">void OnUpdate()</code></pre>
  255. </div>
  256. <h3 id="extensionmethods">Extension Methods</h3>
  257. <div>
  258. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  259. </div>
  260. <div>
  261. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetPrivateField__1_System_Object_System_String_">ReflectionUtil.GetPrivateField&lt;T&gt;(Object, String)</a>
  262. </div>
  263. <div>
  264. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  265. </div>
  266. <div>
  267. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  268. </div>
  269. <div>
  270. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod&lt;T&gt;(Object, String, Object[])</a>
  271. </div>
  272. </article>
  273. </div>
  274. <div class="hidden-sm col-md-2" role="complementary">
  275. <div class="sideaffix">
  276. <div class="contribution">
  277. <ul class="nav">
  278. <li>
  279. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_IBeatSaberPlugin.md&amp;value=---%0Auid%3A%20IPA.IBeatSaberPlugin%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  280. </li>
  281. <li>
  282. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs/#L10" class="contribution-link">View Source</a>
  283. </li>
  284. </ul>
  285. </div>
  286. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  287. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  288. </nav>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. <footer>
  294. <div class="grad-bottom"></div>
  295. <div class="footer">
  296. <div class="container">
  297. <span class="pull-right">
  298. <a href="#top">Back to top</a>
  299. </span>
  300. <span>Generated by <strong>DocFX</strong></span>
  301. </div>
  302. </div>
  303. </footer>
  304. </div>
  305. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  306. <script type="text/javascript" src="../styles/docfx.js"></script>
  307. <script type="text/javascript" src="../styles/main.js"></script>
  308. </body>
  309. </html>