mirror of
https://github.com/ModOrganizer2/python-plugins-doc.git
synced 2026-07-27 14:07:44 -07:00
Deploying to master from @ 4f9e212b9379db74594505f730cb48584743a17e 🚀
This commit is contained in:
+85
-42
@@ -3,9 +3,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="en" >
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>IProfile — MO2 Python Plugin API 2.3rc1 documentation</title>
|
||||
|
||||
@@ -19,10 +19,13 @@
|
||||
|
||||
<link rel="shortcut icon" href="../_static/mo2.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../_static/js/html5shiv.min.js"></script>
|
||||
<![endif]-->
|
||||
@@ -54,7 +57,7 @@
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home" alt="Documentation Home"> MO2 Python Plugin API
|
||||
<a href="../index.html" class="icon icon-home"> MO2 Python Plugin API
|
||||
|
||||
|
||||
|
||||
@@ -93,6 +96,7 @@
|
||||
<li class="toctree-l3"><a class="reference internal" href="../setup-tools.html#get-the-mobase-stubs">1. Get the <code class="docutils literal notranslate"><span class="pre">mobase</span></code> stubs</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="../setup-tools.html#configure-visual-studio-code-for-mobase">2. Configure Visual Studio Code for <code class="docutils literal notranslate"><span class="pre">mobase</span></code></a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="../setup-tools.html#configure-mypy-to-find-the-mobase-stubs">3. Configure <code class="docutils literal notranslate"><span class="pre">mypy</span></code> to find the <code class="docutils literal notranslate"><span class="pre">mobase</span></code> stubs</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="../setup-tools.html#optional-automatically-reload-plugins-during-development">4. [Optional] Automatically reload plugins during development</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="../setup-tools.html#testing-the-setup">Testing the setup</a></li>
|
||||
@@ -147,6 +151,7 @@
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="../mobase.html#classes">Classes</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.BSAInvalidation.html">BSAInvalidation</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.DataArchives.html">DataArchives</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.EndorsedState.html">EndorsedState</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ExecutableForcedLoadSetting.html">ExecutableForcedLoadSetting</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ExecutableInfo.html">ExecutableInfo</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.FileInfo.html">FileInfo</a></li>
|
||||
@@ -171,6 +176,7 @@
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.IPluginList.html">IPluginList</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.IPluginModPage.html">IPluginModPage</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.IPluginPreview.html">IPluginPreview</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.IPluginRequirement.html">IPluginRequirement</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.IPluginTool.html">IPluginTool</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">IProfile</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ISaveGame.html">ISaveGame</a></li>
|
||||
@@ -184,6 +190,7 @@
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ModDataContent.html">ModDataContent</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ModRepositoryFileInfo.html">ModRepositoryFileInfo</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ModState.html">ModState</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.PluginRequirementFactory.html">PluginRequirementFactory</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.PluginSetting.html">PluginSetting</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.PluginState.html">PluginState</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ProfileSetting.html">ProfileSetting</a></li>
|
||||
@@ -191,6 +198,7 @@
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.SaveGameInfo.html">SaveGameInfo</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.ScriptExtender.html">ScriptExtender</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.SortMechanism.html">SortMechanism</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.TrackedState.html">TrackedState</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.UnmanagedMods.html">UnmanagedMods</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.VersionInfo.html">VersionInfo</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="mobase.VersionScheme.html">VersionScheme</a></li>
|
||||
@@ -238,6 +246,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||
|
||||
<ul class="wy-breadcrumbs">
|
||||
@@ -251,7 +261,7 @@
|
||||
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
|
||||
|
||||
|
||||
<a href="../_sources/api/mobase.IProfile.rst.txt" rel="nofollow"> View page source</a>
|
||||
|
||||
|
||||
@@ -271,6 +281,7 @@
|
||||
<dt id="mobase.IProfile">
|
||||
<em class="property">class </em><code class="sig-prename descclassname">mobase.</code><code class="sig-name descname">IProfile</code><a class="headerlink" href="#mobase.IProfile" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
|
||||
<p>Interface to interact with Mod Organizer 2 profiles.</p>
|
||||
<p class="rubric">Methods Summary</p>
|
||||
<table class="longtable docutils align-default">
|
||||
<colgroup>
|
||||
@@ -278,42 +289,45 @@
|
||||
<col style="width: 90%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.absolutePath" title="mobase.IProfile.absolutePath"><code class="xref py py-obj docutils literal notranslate"><span class="pre">absolutePath</span></code></a>()</p></td>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.absoluteIniFilePath" title="mobase.IProfile.absoluteIniFilePath"><code class="xref py py-obj docutils literal notranslate"><span class="pre">absoluteIniFilePath</span></code></a>(inifile)</p></td>
|
||||
<td><p>Retrieve the absolute file path to the corresponding INI file for this profile.</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference internal" href="#mobase.IProfile.absolutePath" title="mobase.IProfile.absolutePath"><code class="xref py py-obj docutils literal notranslate"><span class="pre">absolutePath</span></code></a>()</p></td>
|
||||
<td><p><dl class="field-list simple">
|
||||
<dt class="field-odd">rtype</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
<dt class="field-odd">returns</dt>
|
||||
<dd class="field-odd"><p>The absolute path to the profile folder.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference internal" href="#mobase.IProfile.invalidationActive" title="mobase.IProfile.invalidationActive"><code class="xref py py-obj docutils literal notranslate"><span class="pre">invalidationActive</span></code></a>()</p></td>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.invalidationActive" title="mobase.IProfile.invalidationActive"><code class="xref py py-obj docutils literal notranslate"><span class="pre">invalidationActive</span></code></a>()</p></td>
|
||||
<td><p><dl class="field-list simple">
|
||||
<dt class="field-odd">rtype</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-data docutils literal notranslate"><span class="pre">Tuple</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>]</p>
|
||||
<dt class="field-odd">returns</dt>
|
||||
<dd class="field-odd"><p>True if automatic archive invalidation is enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.localSavesEnabled" title="mobase.IProfile.localSavesEnabled"><code class="xref py py-obj docutils literal notranslate"><span class="pre">localSavesEnabled</span></code></a>()</p></td>
|
||||
<tr class="row-even"><td><p><a class="reference internal" href="#mobase.IProfile.localSavesEnabled" title="mobase.IProfile.localSavesEnabled"><code class="xref py py-obj docutils literal notranslate"><span class="pre">localSavesEnabled</span></code></a>()</p></td>
|
||||
<td><p><dl class="field-list simple">
|
||||
<dt class="field-odd">rtype</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
<dt class="field-odd">returns</dt>
|
||||
<dd class="field-odd"><p>True if profile-specific saves are enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference internal" href="#mobase.IProfile.localSettingsEnabled" title="mobase.IProfile.localSettingsEnabled"><code class="xref py py-obj docutils literal notranslate"><span class="pre">localSettingsEnabled</span></code></a>()</p></td>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.localSettingsEnabled" title="mobase.IProfile.localSettingsEnabled"><code class="xref py py-obj docutils literal notranslate"><span class="pre">localSettingsEnabled</span></code></a>()</p></td>
|
||||
<td><p><dl class="field-list simple">
|
||||
<dt class="field-odd">rtype</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
<dt class="field-odd">returns</dt>
|
||||
<dd class="field-odd"><p>True if profile-specific game settings are enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><a class="reference internal" href="#mobase.IProfile.name" title="mobase.IProfile.name"><code class="xref py py-obj docutils literal notranslate"><span class="pre">name</span></code></a>()</p></td>
|
||||
<tr class="row-even"><td><p><a class="reference internal" href="#mobase.IProfile.name" title="mobase.IProfile.name"><code class="xref py py-obj docutils literal notranslate"><span class="pre">name</span></code></a>()</p></td>
|
||||
<td><p><dl class="field-list simple">
|
||||
<dt class="field-odd">rtype</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
<dt class="field-odd">returns</dt>
|
||||
<dd class="field-odd"><p>The name of this profile.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p></td>
|
||||
@@ -321,12 +335,37 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="rubric">Methods Documentation</p>
|
||||
<dl class="method">
|
||||
<dt id="mobase.IProfile.absoluteIniFilePath">
|
||||
<code class="sig-name descname">absoluteIniFilePath</code><span class="sig-paren">(</span><em class="sig-param">inifile</em><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.absoluteIniFilePath" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Retrieve the absolute file path to the corresponding INI file for this profile.</p>
|
||||
<p>If iniFile does not correspond to a file in the list of INI files for the
|
||||
current game (as returned by IPluginGame::iniFiles), the path to the global
|
||||
file will be returned (if iniFile is absolute, iniFile is returned, otherwise
|
||||
the path is assumed relative to the game documents directory).</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>inifile</strong> – INI file to retrieve a path for. This can either be the name of a file or a path to the
|
||||
absolute file outside of the profile.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>The absolute path for the given INI file for this profile.</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="mobase.IProfile.absolutePath">
|
||||
<code class="sig-name descname">absolutePath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.absolutePath" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><dl class="field-list simple">
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
<dt class="field-odd">Returns</dt>
|
||||
<dd class="field-odd"><p>The absolute path to the profile folder.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
@@ -335,8 +374,11 @@
|
||||
<dt id="mobase.IProfile.invalidationActive">
|
||||
<code class="sig-name descname">invalidationActive</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.invalidationActive" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><dl class="field-list simple">
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-data docutils literal notranslate"><span class="pre">Tuple</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>]</p>
|
||||
<dt class="field-odd">Returns</dt>
|
||||
<dd class="field-odd"><p>True if automatic archive invalidation is enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p><code class="xref py py-data docutils literal notranslate"><span class="pre">Tuple</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>]</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
@@ -345,8 +387,11 @@
|
||||
<dt id="mobase.IProfile.localSavesEnabled">
|
||||
<code class="sig-name descname">localSavesEnabled</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.localSavesEnabled" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><dl class="field-list simple">
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
<dt class="field-odd">Returns</dt>
|
||||
<dd class="field-odd"><p>True if profile-specific saves are enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
@@ -355,8 +400,11 @@
|
||||
<dt id="mobase.IProfile.localSettingsEnabled">
|
||||
<code class="sig-name descname">localSettingsEnabled</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.localSettingsEnabled" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><dl class="field-list simple">
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
<dt class="field-odd">Returns</dt>
|
||||
<dd class="field-odd"><p>True if profile-specific game settings are enabled for this profile, False otherwise.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
@@ -365,8 +413,11 @@
|
||||
<dt id="mobase.IProfile.name">
|
||||
<code class="sig-name descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mobase.IProfile.name" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><dl class="field-list simple">
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
<dt class="field-odd">Returns</dt>
|
||||
<dd class="field-odd"><p>The name of this profile.</p>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
@@ -380,37 +431,29 @@
|
||||
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||
|
||||
<a href="mobase.ISaveGame.html" class="btn btn-neutral float-right" title="ISaveGame" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||
|
||||
|
||||
<a href="mobase.IPluginTool.html" class="btn btn-neutral float-left" title="IPluginTool" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||
|
||||
<a href="mobase.ISaveGame.html" class="btn btn-neutral float-right" title="ISaveGame" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
<a href="mobase.IPluginTool.html" class="btn btn-neutral float-left" title="IPluginTool" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
</div>
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
|
||||
© Copyright 2020, Holt59
|
||||
© Copyright 2020, Holt59.
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a
|
||||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
||||
|
||||
<a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a>
|
||||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
||||
|
||||
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user