<?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=GetRole</id>
	<title>GetRole - 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=GetRole"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=GetRole&amp;action=history"/>
	<updated>2026-05-12T22:57:53Z</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=GetRole&amp;diff=1005&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== IM Class - &lt;code&gt;GetRole&lt;/code&gt; Method ===  ==== Overview ==== The &lt;code&gt;GetRole&lt;/code&gt; method in the IM class is utilized for obtaining a specific role within the game using its name or ID.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public static Role GetRole(string roleNameOrId) &lt;/syntaxhighlight&gt;  ==== Description ==== This method searches for a role by its name or unique ID within the game's active role list. If a matching role is found, it returns the corresp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=GetRole&amp;diff=1005&amp;oldid=prev"/>
		<updated>2024-01-05T16:17:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== IM Class - &amp;lt;code&amp;gt;GetRole&amp;lt;/code&amp;gt; Method ===  ==== Overview ==== The &amp;lt;code&amp;gt;GetRole&amp;lt;/code&amp;gt; method in the IM class is utilized for obtaining a specific role within the game using its name or ID.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public static Role GetRole(string roleNameOrId) &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This method searches for a role by its name or unique ID within the game&amp;#039;s active role list. If a matching role is found, it returns the corresp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== IM Class - &amp;lt;code&amp;gt;GetRole&amp;lt;/code&amp;gt; Method ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;GetRole&amp;lt;/code&amp;gt; method in the IM class is utilized for obtaining a specific role within the game using its name or ID.&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 static Role GetRole(string roleNameOrId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This method searches for a role by its name or unique ID within the game's active role list. If a matching role is found, it returns the corresponding &amp;lt;code&amp;gt;Role&amp;lt;/code&amp;gt; object.&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 RoleInfoDisplay : MonoBehaviour {&lt;br /&gt;
    void DisplayRoleInfo() {&lt;br /&gt;
        // Retrieve a role by name or ID&lt;br /&gt;
        var role = IM.GetRole(&amp;quot;Leader&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // Check if the role exists and display information&lt;br /&gt;
        if (role != null) {&lt;br /&gt;
            Debug.Log($&amp;quot;Role Name: {role.RoleName}&amp;quot;);&lt;br /&gt;
            Debug.Log($&amp;quot;Role Description: {role.Description}&amp;quot;);&lt;br /&gt;
        } else {&lt;br /&gt;
            Debug.Log(&amp;quot;Role not found.&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;
* This method is essential for dynamically accessing and utilizing role information in various game scenarios, such as assigning roles to actors or displaying role-specific details.&lt;br /&gt;
* Accurate retrieval requires the provided role name or ID to match precisely with the ones in the game's role list.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>