<?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=Role.SetCapacity</id>
	<title>Role.SetCapacity - 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=Role.SetCapacity"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.SetCapacity&amp;action=history"/>
	<updated>2026-05-06T00:50:31Z</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=Role.SetCapacity&amp;diff=1000&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== Role Class - &lt;code&gt;SetCapacity&lt;/code&gt; Method ===  ==== Overview ==== The &lt;code&gt;SetCapacity&lt;/code&gt; method in the Role class allows setting the maximum number of individuals who can occupy a specific role simultaneously.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public void SetCapacity(int capacity) &lt;/syntaxhighlight&gt;  ==== Description ==== This method is used to define or modify the capacity of a role, which is the maximum number of actors that can hold this role...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.SetCapacity&amp;diff=1000&amp;oldid=prev"/>
		<updated>2024-01-05T16:03:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Role Class - &amp;lt;code&amp;gt;SetCapacity&amp;lt;/code&amp;gt; Method ===  ==== Overview ==== The &amp;lt;code&amp;gt;SetCapacity&amp;lt;/code&amp;gt; method in the Role class allows setting the maximum number of individuals who can occupy a specific role simultaneously.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public void SetCapacity(int capacity) &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This method is used to define or modify the capacity of a role, which is the maximum number of actors that can hold this role...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Role Class - &amp;lt;code&amp;gt;SetCapacity&amp;lt;/code&amp;gt; Method ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;SetCapacity&amp;lt;/code&amp;gt; method in the Role class allows setting the maximum number of individuals who can occupy a specific role simultaneously.&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 SetCapacity(int capacity)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This method is used to define or modify the capacity of a role, which is the maximum number of actors that can hold this role at any given time. The &amp;lt;code&amp;gt;capacity&amp;lt;/code&amp;gt; parameter is an integer representing this limit.&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
The method is particularly useful in scenarios where certain roles need to be limited in number, such as exclusive positions or titles within a clan or organization.&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 RoleManager : MonoBehaviour {&lt;br /&gt;
    void SetRoleCapacity() {&lt;br /&gt;
        // Retrieve a specific role, for instance, &amp;quot;Guard&amp;quot;&lt;br /&gt;
        var role = IM.GetRole(&amp;quot;Guard&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // Set a new capacity for the &amp;quot;Guard&amp;quot; role&lt;br /&gt;
        role.SetCapacity(10); // Max 10 guards allowed&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;
* Adjusting the capacity of a role can impact the game's dynamics, especially in scenarios involving hierarchy, power balance, or resource allocation.&lt;br /&gt;
* It's important to carefully consider the implications of changing a role's capacity, as it can significantly affect gameplay and player strategy.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>