<?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=GetMember</id>
	<title>GetMember - 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=GetMember"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=GetMember&amp;action=history"/>
	<updated>2026-05-06T00:50:58Z</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=GetMember&amp;diff=931&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;GetMember&lt;/code&gt; Method in Clan Class ==  === Overview === The &lt;code&gt;GetMember&lt;/code&gt; method in the Clan class is designed to retrieve a specific member of the clan based on their role. This method is useful for identifying individual clan members who fulfill particular roles within the clan's structure.  === Method Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public Actor GetMember(string roleFilter, bool inclusivePassive = false); &lt;/syntaxhighlight&gt;  === Descrip...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=GetMember&amp;diff=931&amp;oldid=prev"/>
		<updated>2024-01-05T00:49:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;GetMember&amp;lt;/code&amp;gt; Method in Clan Class ==  === Overview === The &amp;lt;code&amp;gt;GetMember&amp;lt;/code&amp;gt; method in the Clan class is designed to retrieve a specific member of the clan based on their role. This method is useful for identifying individual clan members who fulfill particular roles within the clan&amp;#039;s structure.  === Method Definition === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public Actor GetMember(string roleFilter, bool inclusivePassive = false); &amp;lt;/syntaxhighlight&amp;gt;  === Descrip...&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;GetMember&amp;lt;/code&amp;gt; Method in Clan Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;GetMember&amp;lt;/code&amp;gt; method in the Clan class is designed to retrieve a specific member of the clan based on their role. This method is useful for identifying individual clan members who fulfill particular roles within the clan's structure.&lt;br /&gt;
&lt;br /&gt;
=== Method Definition ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public Actor GetMember(string roleFilter, bool inclusivePassive = false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Parameters:&lt;br /&gt;
** &amp;lt;code&amp;gt;roleFilter&amp;lt;/code&amp;gt;: A string representing the role to filter the member by (e.g., 'Engineer').&lt;br /&gt;
** &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt;: A boolean flag. If set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, includes passive (e.g., deceased) members in the search. Defaults to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Returns: The first &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; found matching the specified role filter. Returns &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; if no match is found.&lt;br /&gt;
&lt;br /&gt;
=== Functionality ===&lt;br /&gt;
&lt;br /&gt;
* The method searches through the clan's members for the first individual whose role matches the specified &amp;lt;code&amp;gt;roleFilter&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, the method includes members who are not currently active (such as deceased members) in the search.&lt;br /&gt;
* If multiple members have the specified role, only the first one encountered is returned.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This method is ideal for scenarios where a specific role needs to be identified quickly within a clan, such as finding a leader, a healer, or an engineer. It's particularly useful in gameplay mechanics or storylines where individual roles are critical.&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 ClanRoleAssignment : MonoBehaviour {&lt;br /&gt;
    private Clan playerClan;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        playerClan = IM.Player.Clan;&lt;br /&gt;
        if (playerClan != null) {&lt;br /&gt;
            Actor engineer = playerClan.GetMember(&amp;quot;Engineer&amp;quot;);&lt;br /&gt;
            if (engineer != null) {&lt;br /&gt;
                Debug.Log($&amp;quot;Engineer in the player's clan: {engineer.Name}&amp;quot;);&lt;br /&gt;
            } else {&lt;br /&gt;
                Debug.Log(&amp;quot;No Engineer found in the player's clan.&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
* This example demonstrates using the &amp;lt;code&amp;gt;GetMember&amp;lt;/code&amp;gt; method to find the first member with the role of 'Engineer' in the player's clan.&lt;br /&gt;
* It logs the name of the found engineer to the console, or a message indicating that no engineer is found.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;GetMember&amp;lt;/code&amp;gt; method is particularly useful for quickly accessing specific roles within a clan, enhancing gameplay dynamics and narrative development.&lt;br /&gt;
* It should be used with the understanding that it returns only the first match, which may not always represent all members with the specified role.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>