<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Policy.SetDescription</id>
	<title>Policy.SetDescription - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Policy.SetDescription"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.SetDescription&amp;action=history"/>
	<updated>2026-05-06T00:50:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=Policy.SetDescription&amp;diff=981&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== Policy Class - &lt;code&gt;SetDescription&lt;/code&gt; Method ===  ==== Overview ==== The &lt;code&gt;SetDescription&lt;/code&gt; method in the Policy class is used to update the description of a policy.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public void SetDescription(string description) &lt;/syntaxhighlight&gt;  ==== Description ==== This method allows for dynamically updating the description of a policy during the game. It's useful for providing more context or modifying the narrative a...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.SetDescription&amp;diff=981&amp;oldid=prev"/>
		<updated>2024-01-05T15:01:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Policy Class - &amp;lt;code&amp;gt;SetDescription&amp;lt;/code&amp;gt; Method ===  ==== Overview ==== The &amp;lt;code&amp;gt;SetDescription&amp;lt;/code&amp;gt; method in the Policy class is used to update the description of a policy.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public void SetDescription(string description) &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This method allows for dynamically updating the description of a policy during the game. It&amp;#039;s useful for providing more context or modifying the narrative a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Policy Class - &amp;lt;code&amp;gt;SetDescription&amp;lt;/code&amp;gt; Method ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;SetDescription&amp;lt;/code&amp;gt; method in the Policy class is used to update the description of a policy.&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public void SetDescription(string description)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This method allows for dynamically updating the description of a policy during the game. It's useful for providing more context or modifying the narrative around a policy based on game progression or player choices.&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt;: A &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; representing the new description to be assigned to the policy.&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
Invoke &amp;lt;code&amp;gt;SetDescription&amp;lt;/code&amp;gt; on a Policy instance to change its description. This is useful for adapting the policy narrative to the game's evolving context.&lt;br /&gt;
&lt;br /&gt;
==== Example of Usage ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class PolicyDescriptionUpdater : MonoBehaviour {&lt;br /&gt;
    private Policy currentPolicy;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Fetching the 'Economy' policy&lt;br /&gt;
        currentPolicy = IM.GetPolicy(&amp;quot;Economy&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        if (currentPolicy != null) {&lt;br /&gt;
            // Updating the policy's description&lt;br /&gt;
            currentPolicy.SetDescription(&amp;quot;This policy focuses on boosting the economic growth and stability.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remarks ====&lt;br /&gt;
&lt;br /&gt;
* The new description is instantly applied to the policy and will be used wherever the policy's description is accessed or displayed in the game.&lt;br /&gt;
* Changing a policy's description can help in aligning the policy with the current state or theme of the game, enhancing immersion and narrative consistency.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>