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.

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