Sly 1:Game state: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Created Sly 1 subsystem article)
 
m (Layout)
Line 3: Line 3:
}}
}}


Game state is the subsystem that handles data which gets saved to the save file. It’s cornerstone is a global instance of the {{Sly 1|GS}} struct, <code>g_gs</code>{{check}}, located at .
'''Game state''' is the subsystem that handles data which gets saved to the save file. It manages a global instance of the {{Sly 1|GS}} struct.


== Global values ==
== Global values ==
{| class="wikitable"
{| class="wikitable"
! Address !! Type !! Name !! Description
|+ Caption text
|-
|-
| g_pgsCur || GS* || 0x2623c0 || Pointer to current game state
! Address !! Type !! Name
|-
|-
| g_pwsCur || WS* || 0x2623c4 || Pointer to current world state
| g_pgsCur || GS* || 0x2623c0
|-
|-
| g_plsCur || LS* || 0x2623c8 || Pointer to current level state
| g_pwsCur || WS* || 0x2623c4
|-
| g_plsCur || LS* || 0x2623c8
|}
|}



Revision as of 05:06, 19 October 2022

Game state
Subsystem
Click here to upload a new image.[[Media:|Dummy link]]
GameSly Cooper and the Thievius Raccoonus

Game state is the subsystem that handles data which gets saved to the save file. It manages a global instance of the GS struct.

Global values

Address Type Name Description
g_pgsCur GS* 0x2623c0 Pointer to current game state
g_pwsCur WS* 0x2623c4 Pointer to current world state
g_plsCur LS* 0x2623c8 Pointer to current level state