<?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=OnConspiratorChanged</id>
	<title>OnConspiratorChanged - 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=OnConspiratorChanged"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnConspiratorChanged&amp;action=history"/>
	<updated>2026-05-12T22:56:24Z</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=OnConspiratorChanged&amp;diff=901&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;onConspiratorChanged&lt;/code&gt; Event in Scheme Class ==  === Overview === The &lt;code&gt;onConspiratorChanged&lt;/code&gt; event in the Scheme class is triggered when the conspirator of a scheme is changed. This event provides a way to respond dynamically to changes in the scheme's initiator within the game.  === Event Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public static event Action&lt;Scheme, Actor&gt; onConspiratorChanged; &lt;/syntaxhighlight&gt;  === Description ===  * Parameter...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnConspiratorChanged&amp;diff=901&amp;oldid=prev"/>
		<updated>2024-01-04T23:36:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; Event in Scheme Class ==  === Overview === The &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; event in the Scheme class is triggered when the conspirator of a scheme is changed. This event provides a way to respond dynamically to changes in the scheme&amp;#039;s initiator within the game.  === Event Definition === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public static event Action&amp;lt;Scheme, Actor&amp;gt; onConspiratorChanged; &amp;lt;/syntaxhighlight&amp;gt;  === Description ===  * Parameter...&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;onConspiratorChanged&amp;lt;/code&amp;gt; Event in Scheme Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; event in the Scheme class is triggered when the conspirator of a scheme is changed. This event provides a way to respond dynamically to changes in the scheme's initiator within the game.&lt;br /&gt;
&lt;br /&gt;
=== Event Definition ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public static event Action&amp;lt;Scheme, Actor&amp;gt; onConspiratorChanged;&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;Scheme&amp;lt;/code&amp;gt;: The scheme for which the conspirator has changed.&lt;br /&gt;
** &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt;: The new conspirator actor of the scheme.&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme, Actor&amp;gt;&amp;lt;/code&amp;gt; - A delegate type representing the method signature for the event handlers.&lt;br /&gt;
* Visibility: Public.&lt;br /&gt;
&lt;br /&gt;
=== Functionality ===&lt;br /&gt;
&lt;br /&gt;
* The event is designed to notify other parts of the game when the conspirator of a particular scheme changes, allowing for updates in UI, game logic, or other relevant systems.&lt;br /&gt;
* It facilitates the tracking and management of dynamic changes in schemes, particularly in games where schemes play a crucial role in the narrative or gameplay.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This event is useful for updating UI elements that display information about schemes, handling changes in game logic related to the scheme's initiator, or triggering specific actions when the conspirator of a scheme changes.&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 SchemeListener : MonoBehaviour {&lt;br /&gt;
    void OnEnable() {&lt;br /&gt;
        Scheme.onConspiratorChanged += HandleConspiratorChange;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void OnDisable() {&lt;br /&gt;
        Scheme.onConspiratorChanged -= HandleConspiratorChange;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void HandleConspiratorChange(Scheme scheme, Actor newConspirator) {&lt;br /&gt;
        Debug.Log($&amp;quot;Conspirator of scheme '{scheme.SchemeName}' changed to: {newConspirator.Name}&amp;quot;);&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 subscribing to the &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; event to log a message whenever the conspirator of any scheme changes.&lt;br /&gt;
* The &amp;lt;code&amp;gt;HandleConspiratorChange&amp;lt;/code&amp;gt; method is called whenever the event is triggered, providing information about the scheme and the new conspirator.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; event is an important tool for maintaining game integrity and consistency, especially in games with complex character interactions and decision-making processes.&lt;br /&gt;
* Proper handling of this event can enhance the player's understanding of the evolving narrative and strategic elements within the game.&lt;br /&gt;
* Event handlers for &amp;lt;code&amp;gt;onConspiratorChanged&amp;lt;/code&amp;gt; should be carefully managed to avoid memory leaks or unintended behavior, especially when subscribing and unsubscribing from the event.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>