Sly 1:Splice: Difference between revisions

Tweaked infobox
(Added file prefix)
(Tweaked infobox)
 
(3 intermediate revisions by the same user not shown)
Line 2:
| name= Splice
| image= File:Sly 1 SDC 3key unlocking.png
| caption= SpliceThe handlesgate in-gameunlocking cutscenesanimation andtriggered theirby effectsSplice on thein game[[Sly state.1:v_hub|v_hub]]
| description= Subsystem which handles scripted events and their effects on the game state.
| sly1= y
| startup= 0x11bf70
Line 9 ⟶ 10:
 
{{Investigate|What is CSplotheap and how does Splice handle game events, messages, and cutscenes}}
 
==Startup==
== 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}}