<?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.PolicyName</id>
	<title>Policy.PolicyName - 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.PolicyName"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.PolicyName&amp;action=history"/>
	<updated>2026-05-12T21:10:09Z</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.PolicyName&amp;diff=973&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;PolicyName&lt;/code&gt; Property in Policy Class ==  === Overview === The &lt;code&gt;PolicyName&lt;/code&gt; property in the Policy class serves as a key attribute for defining and recognizing different policies within the game. It provides a human-readable name for each policy, crucial for both players and developers.  === Property Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; [field: SerializeField] public string PolicyName { get; private set; } &lt;/syntaxhighlight&gt;  === Descriptio...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.PolicyName&amp;diff=973&amp;oldid=prev"/>
		<updated>2024-01-05T04:00:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; Property in Policy Class ==  === Overview === The &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; property in the Policy class serves as a key attribute for defining and recognizing different policies within the game. It provides a human-readable name for each policy, crucial for both players and developers.  === Property Definition === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; [field: SerializeField] public string PolicyName { get; private set; } &amp;lt;/syntaxhighlight&amp;gt;  === Descriptio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; Property in Policy Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; property in the Policy class serves as a key attribute for defining and recognizing different policies within the game. It provides a human-readable name for each policy, crucial for both players and developers.&lt;br /&gt;
&lt;br /&gt;
=== Property Definition ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
[field: SerializeField] public string PolicyName { get; private set; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; holds the descriptive name of a policy, such as &amp;quot;Economy&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* Integral for identifying policies in a user-friendly manner.&lt;br /&gt;
* Used in UI elements, such as menus or tooltips, to display policy names.&lt;br /&gt;
* Important for scripting and game logic, especially when referencing specific policies.&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 PolicyDisplay : MonoBehaviour {&lt;br /&gt;
    public Policy policy;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Retrieve a specific policy by its name&lt;br /&gt;
        policy = IM.GetPolicy(&amp;quot;Economy&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        if (policy != null) {&lt;br /&gt;
            Debug.Log(&amp;quot;Policy Name: &amp;quot; + policy.PolicyName);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Here's an example of how you might access and use the &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; property:&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
* The script initializes a &amp;lt;code&amp;gt;Policy&amp;lt;/code&amp;gt; object.&lt;br /&gt;
* In the &amp;lt;code&amp;gt;Start()&amp;lt;/code&amp;gt; method, it retrieves the &amp;quot;Economy&amp;quot; policy.&lt;br /&gt;
* It then logs the name of the policy using the &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; property.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;PolicyName&amp;lt;/code&amp;gt; property is crucial for the clarity and accessibility of policy-related features in the game.&lt;br /&gt;
* Ensure the names are intuitive and descriptive to enhance the player's understanding of each policy.&lt;br /&gt;
* Consistent naming conventions should be maintained for ease of management and future development.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>