<?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=OnSchemeEnded</id>
	<title>OnSchemeEnded - 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=OnSchemeEnded"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeEnded&amp;action=history"/>
	<updated>2026-05-13T00:01:36Z</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=OnSchemeEnded&amp;diff=779&amp;oldid=prev</id>
		<title>Tayfunwiki at 19:41, 24 December 2023</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeEnded&amp;diff=779&amp;oldid=prev"/>
		<updated>2023-12-24T19:41:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:41, 24 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Enum Type: &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Enum Type: &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Values:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Values:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;: Indicates no specific result &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or an uninitialized state&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;: Indicates no specific result.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;Success&amp;lt;/code&amp;gt;: Represents a successful completion of the scheme.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;Success&amp;lt;/code&amp;gt;: Represents a successful completion of the scheme.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;Failed&amp;lt;/code&amp;gt;: Signifies that the scheme did not achieve its intended outcome.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;code&amp;gt;Failed&amp;lt;/code&amp;gt;: Signifies that the scheme did not achieve its intended outcome.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=OnSchemeEnded&amp;diff=778&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;onSchemeEnded&lt;/code&gt; Event in Actor Class ==  === Overview === The &lt;code&gt;onSchemeEnded&lt;/code&gt; event is a critical component of the &lt;code&gt;Actor&lt;/code&gt; class, triggered upon the conclusion of a scheme. It's instrumental in games where the outcomes of schemes drive narrative developments, character interactions, or gameplay changes.  === Description of &lt;code&gt;SchemeResult&lt;/code&gt; Enum ===  * Enum Type: &lt;code&gt;SchemeResult&lt;/code&gt; * Values: ** &lt;code&gt;None&lt;/code&gt;: Indicat...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeEnded&amp;diff=778&amp;oldid=prev"/>
		<updated>2023-12-24T19:40:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; Event in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; event is a critical component of the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class, triggered upon the conclusion of a scheme. It&amp;#039;s instrumental in games where the outcomes of schemes drive narrative developments, character interactions, or gameplay changes.  === Description of &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; Enum ===  * Enum Type: &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; * Values: ** &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;: Indicat...&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;onSchemeEnded&amp;lt;/code&amp;gt; Event in Actor Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; event is a critical component of the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class, triggered upon the conclusion of a scheme. It's instrumental in games where the outcomes of schemes drive narrative developments, character interactions, or gameplay changes.&lt;br /&gt;
&lt;br /&gt;
=== Description of &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; Enum ===&lt;br /&gt;
&lt;br /&gt;
* Enum Type: &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt;&lt;br /&gt;
* Values:&lt;br /&gt;
** &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;: Indicates no specific result or an uninitialized state.&lt;br /&gt;
** &amp;lt;code&amp;gt;Success&amp;lt;/code&amp;gt;: Represents a successful completion of the scheme.&lt;br /&gt;
** &amp;lt;code&amp;gt;Failed&amp;lt;/code&amp;gt;: Signifies that the scheme did not achieve its intended outcome.&lt;br /&gt;
&lt;br /&gt;
=== Description of &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; Event ===&lt;br /&gt;
&lt;br /&gt;
* Event Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme, SchemeResult&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Functionality: Activates when a scheme involving the actor ends, providing insights into both the scheme and its outcome. The event handler receives the scheme that ended and its result as defined by the &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; enum. This setup allows for tailored reactions based on the nature and success or failure of the scheme.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The event is used to trigger specific actions or logic in response to the conclusion of schemes, such as updating game states, adjusting character statuses, or advancing the storyline based on the scheme's result.&lt;br /&gt;
&lt;br /&gt;
=== Subscribing to the Event ===&lt;br /&gt;
Subscribe to the &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; event within a MonoBehaviour script to handle the end of schemes. Ensure to unsubscribe from the event appropriately to maintain optimal performance and prevent memory leaks.&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 SchemeOutcomeHandler : MonoBehaviour {&lt;br /&gt;
    public Actor actor;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        if (actor != null) {&lt;br /&gt;
            actor.onSchemeEnded += OnSchemeEnded;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnSchemeEnded(Scheme scheme, SchemeResult result) {&lt;br /&gt;
        Debug.Log($&amp;quot;Scheme {scheme.SchemeName} ended with result: {result}&amp;quot;);&lt;br /&gt;
        // Custom logic based on the scheme's outcome&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void OnDestroy() {&lt;br /&gt;
        if (actor != null) {&lt;br /&gt;
            actor.onSchemeEnded -= OnSchemeEnded;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this Unity script example, the &amp;lt;code&amp;gt;SchemeOutcomeHandler&amp;lt;/code&amp;gt; is attached to a GameObject and listens for the &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; event from an &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt;. When a scheme ends, it triggers the &amp;lt;code&amp;gt;OnSchemeEnded&amp;lt;/code&amp;gt; method, allowing for responses tailored to the specific outcome of the scheme.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;onSchemeEnded&amp;lt;/code&amp;gt; event with &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; allows for nuanced and strategic gameplay, enhancing player engagement through responsive and outcome-based scenarios.&lt;br /&gt;
* Understanding and utilizing the different outcomes in &amp;lt;code&amp;gt;SchemeResult&amp;lt;/code&amp;gt; is key to creating a dynamic and interactive game environment.&lt;br /&gt;
* This event is particularly crucial in narrative-rich and strategy-focused games where the consequences of player actions significantly impact the game's progression.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>