import{_ase,cast,o,Nasa}from"./chunks/framework.0799945b.js";constb=JSON.parse('{"title":"Module: features/conversion","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/conversion.md","lastUpdated":null}'),r={name:"api/modules/features/conversion.md"},n=a('<h1id="module-features-conversion"tabindex="-1">Module:features/conversion<aclass="header-anchor"href="#module-features-conversion"aria-label="Permalink to "Module: features/conversion""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="baseconversion"tabindex="-1">BaseConversion<aclass="header-anchor"href="#baseconversion"aria-label="Permalinkto"BaseConversion""></a></h3><p>•<strong>BaseConversion</strong>:<code>Object</code></p><p>Thepropertiesthatareaddedontoaprocessed<ahref="./conversion#conversionoptions">ConversionOptions</a>tocreatea<ahref="./conversion#conversion">Conversion</a>.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>convert</code></td><tdstyle="text-align:left;"><code>VoidFunction</code></td><tdstyle="text-align:left;">Thefunctionthatperformstheactualconversion.</td></tr></tbody></table><h4id="defined-in"tabindex="-1">Definedin<aclass="header-anchor"href="#defined-in"aria-label="Permalinkto"Definedin""></a></h4><p><ahref="https://github.com/profectus-engine/Profectus/blob/c386ace/src/features/conversion.ts#L84"target="_blank"rel="noreferrer">profectus/src/features/conversion.ts:84</a></p><hr><h3id="conversionoptions"tabindex="-1">ConversionOptions<aclass="header-anchor"href="#conversionoptions"aria-label="Permalinkto"ConversionOptions""></a></h3><p>•<strong>ConversionOptions</strong>:<code>Object</code></p><p>Anobjectthatconfiguresa<ahref="./conversion#conversion">Conversion</a>.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>actualGain?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>></td><tdstyle="text-align:left;">Theabsoluteamounttheoutputresourcewillbechangedby.Typicallythiswillbesetforyouinaconversionconstructor.Thiswilldifferfrom<ahref="./conversion#currentgain">currentGain</a>inthecaseswheretheconversionisn'tjustaddingtheconvertedamounttotheoutputresource.</td></tr><tr><tdstyle="text-align:left;"><code>baseResource</code></td><tdstyle="text-align:left;"><ahref="./resource#resource"><code>Resource</code></a><<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>></td><tdstyle="text-align:left;">Theinput<ahref="./resource#resource">Resource</a>forthisconversion.</td></tr><tr><tdstyle="text-align:left;"><code>buyMax?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<code>boolean</code>></td><tdstyle="text-align:left;">Whetherornottocaptheamountoftheoutputresourcegainedbyconvertingat1.Defaultstotrue.</td></tr><tr><tdstyle="text-align:left;"><code>convert?</code></td><tdstyle="text-align:left;"><code>VoidFunction</code></td><tdstyle="text-align:left;">Thefunctionthatperformstheactualconversionfrom<ahref="./conversion#baseresource">baseResource</a>to<ahref="./conversion#gainresource">gainResource</a>.Typicallythiswillbesetforyouinaconversionconstructor.</td></tr><tr><tdstyle="text-align:left;"><code>currentAt?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a>&l