Sly 1:Splice: Difference between revisions

Tweaked infobox
(Created page for subsystem)
 
(Tweaked infobox)
 
(9 intermediate revisions by the same user not shown)
Line 1:
{{Infobox subsystem
| name= Splice
| image= File:Sly 1 SDC 3key unlocking.png
| caption= The gate unlocking animation triggered by Splice in [[Sly 1:v_hub|v_hub]]
| description= Subsystem which handles scripted events and their effects on the game state.
| sly1= y
| startup= 0x11bf70
}}
'''Splice''' is the subsystem that manages the level scripts in {{Sly 1}}. It seems to also be used in {{Sly 2}} and {{Sly 3}}, but further research is needed.
 
{{Investigate|What is CSplotheap and how does Splice handle game events, messages, and cutscenes}}
==Startup==
 
{{Todo|Investigate and add more info}}
== Lifecycle ==
=== Startup ===
During a level load, <code>LoadSwFromBrx</code> calls <code>StartupSplice</code>. This calls <code>CSplotheap::Startup</code> on five [[CSplotheap|splotheap]] instances, each of varying size. It also calls <code>CGc::Startup</code> on the global <code>g_gc</code> instance.
 
=== Shutdown ===
When a level transition occurs, <code>CTransition::Execute</code> calls <code>DeleteSw</code> which in turn calls <code>ShutdownSplice</code>. This calls <code>CSplotheap::Shutdown</code> on the five splotheaps initialized when the level was loaded. It also calls <code>CGc::Shutdown</code> on the global <code>g_gc</code> instance.
 
== Events ==
{{Empty section}}
 
{{Stub}}
{{Navbox Sly 1}}
{{Stub}}
[[Subsystems in Sly 1]]