<?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=OnSchemeLoaded</id>
	<title>OnSchemeLoaded - 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=OnSchemeLoaded"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeLoaded&amp;action=history"/>
	<updated>2026-05-06T00:50:39Z</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=OnSchemeLoaded&amp;diff=780&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;onSchemeLoaded&lt;/code&gt; Event in Actor Class ==  === Overview === The &lt;code&gt;onSchemeLoaded&lt;/code&gt; event in the &lt;code&gt;Actor&lt;/code&gt; class is triggered when a scheme is loaded from the Intrigue Save System. This event plays a vital role in games where the persistence and retrieval of schemes are integral to gameplay continuity and narrative progression.  === Description ===  * Event Type: &lt;code&gt;Action&lt;Scheme&gt;&lt;/code&gt; * Functionality: Activated whenever a previously sa...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeLoaded&amp;diff=780&amp;oldid=prev"/>
		<updated>2023-12-24T19:41:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;onSchemeLoaded&amp;lt;/code&amp;gt; Event in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;onSchemeLoaded&amp;lt;/code&amp;gt; event in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is triggered when a scheme is loaded from the Intrigue Save System. This event plays a vital role in games where the persistence and retrieval of schemes are integral to gameplay continuity and narrative progression.  === Description ===  * Event Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme&amp;gt;&amp;lt;/code&amp;gt; * Functionality: Activated whenever a previously sa...&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;onSchemeLoaded&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;onSchemeLoaded&amp;lt;/code&amp;gt; event in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is triggered when a scheme is loaded from the Intrigue Save System. This event plays a vital role in games where the persistence and retrieval of schemes are integral to gameplay continuity and narrative progression.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Event Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Functionality: Activated whenever a previously saved scheme is loaded from the Intrigue Save System. This event provides a framework for executing specific actions or logic in response to the loading of schemes, ensuring continuity and dynamic adaptation of the game state based on saved data.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This event is particularly useful for re-establishing game state, updating UI elements, or triggering narrative events upon loading schemes. It is essential for games with complex storylines or strategies where player actions and decisions are saved and restored.&lt;br /&gt;
&lt;br /&gt;
=== Subscribing to the Event ===&lt;br /&gt;
Subscribe to the &amp;lt;code&amp;gt;onSchemeLoaded&amp;lt;/code&amp;gt; event in a MonoBehaviour script to implement custom responses to the loading of schemes. Ensure to unsubscribe appropriately to avoid memory leaks or unwanted behavior.&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 SchemeLoadListener : 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.onSchemeLoaded += OnSchemeLoaded;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnSchemeLoaded(Scheme scheme) {&lt;br /&gt;
        Debug.Log($&amp;quot;Loaded scheme: {scheme.SchemeName} from Intrigue Save System&amp;quot;);&lt;br /&gt;
        // Implement logic to handle the loaded scheme&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void OnDestroy() {&lt;br /&gt;
        if (actor != null) {&lt;br /&gt;
            actor.onSchemeLoaded -= OnSchemeLoaded;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, the &amp;lt;code&amp;gt;SchemeLoadListener&amp;lt;/code&amp;gt; script is attached to a Unity GameObject and subscribes to the &amp;lt;code&amp;gt;onSchemeLoaded&amp;lt;/code&amp;gt; event of an &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt;. When a scheme is loaded, the &amp;lt;code&amp;gt;OnSchemeLoaded&amp;lt;/code&amp;gt; method is called, allowing for custom logic to handle the loaded scheme.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;onSchemeLoaded&amp;lt;/code&amp;gt; event is crucial for games that utilize a save system, ensuring smooth gameplay and narrative transitions upon loading schemes.&lt;br /&gt;
* Proper management of event subscriptions is important in Unity to maintain performance and avoid memory leaks.&lt;br /&gt;
* This event enhances the player's experience by allowing for seamless continuity in gameplay and story progression when loading schemes.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>