<?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.ID</id>
	<title>Policy.ID - 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.ID"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.ID&amp;action=history"/>
	<updated>2026-05-13T01:32:04Z</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.ID&amp;diff=972&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;ID&lt;/code&gt; Property in Policy Class ==  === Overview === The &lt;code&gt;ID&lt;/code&gt; property in the Policy class is crucial for uniquely identifying each policy within the game's framework. This property is vital for managing and referencing different policies effectively.  === Property Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; [field: SerializeField] public string ID { get; private set; } &lt;/syntaxhighlight&gt;  === Description ===  * &lt;code&gt;ID&lt;/code&gt; holds a unique identi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.ID&amp;diff=972&amp;oldid=prev"/>
		<updated>2024-01-05T03:59:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; Property in Policy Class ==  === Overview === The &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; property in the Policy class is crucial for uniquely identifying each policy within the game&amp;#039;s framework. This property is vital for managing and referencing different policies effectively.  === Property Definition === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; [field: SerializeField] public string ID { get; private set; } &amp;lt;/syntaxhighlight&amp;gt;  === Description ===  * &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; holds a unique identi...&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;ID&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;ID&amp;lt;/code&amp;gt; property in the Policy class is crucial for uniquely identifying each policy within the game's framework. This property is vital for managing and referencing different policies effectively.&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 ID { 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;ID&amp;lt;/code&amp;gt; holds a unique identifier for a policy, ensuring each policy can be distinctly recognized.&lt;br /&gt;
* Serialized fields allow Unity to store and edit this property in the editor.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
* Essential for referencing policies in scripts and game mechanics.&lt;br /&gt;
* Useful for developers when creating new policies or managing existing ones.&lt;br /&gt;
* Integral for lookups, comparisons, and tracking policy-related changes or events.&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 PolicyManager : MonoBehaviour {&lt;br /&gt;
    public Policy policy;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Retrieve a specific policy based on its ID&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 ID: &amp;quot; + policy.ID);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Here's an example demonstrating how to access a specific policy using its ID:&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;
* &amp;lt;code&amp;gt;Start()&amp;lt;/code&amp;gt; method retrieves a policy named &amp;quot;Economy&amp;quot; from the game's policy database.&lt;br /&gt;
* Prints the unique ID of the retrieved policy to the console.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; is a fundamental attribute for policy management and operations within the game.&lt;br /&gt;
* It's important to ensure that each policy has a unique ID for proper functionality.&lt;br /&gt;
* This property should be set thoughtfully to maintain consistency and clarity in the game's policy system.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>