Sly 1:VAULT: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Added field sizes)
(Added infobox image)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox struct
{{Infobox struct
| image= File:Sly 1 vault.png
}}
}}
'''VAULT''' is a struct in {{Sly 1}}. It is used in the functions <code>OpenVault</code> and <code>UpdateVaultActive</code>. One can be found in memory in each level that contains a vault.
'''VAULT''' is a struct in {{Sly 1}} that represents a combination vault in a level. It is used in the functions <code>OpenVault</code> and <code>UpdateVaultActive</code>, among others.


== Fields ==
== Fields ==

{{Struct|
{{Struct top}}
{{Struct field|0x614|0x4|[[Sly 1:SMA|SMA]] *|psmaVault|SMA goal to set upon opening the vault.}}
{{Struct field|0x614|0x4|struct SMA*|psmaVault|SMA goal to set upon opening the vault.}}
{{Struct field|0x640|0x4|int|nCombination|Vault combination (any three digit number)}}
{{Struct field|0x640|0x4|int|nCombination|Vault combination (any three digit number)}}
{{Struct field|0x760|0x4|int|''Thief move mask''|Mask of bits to unlock on the powerup flags upon opening the vault}}
{{Struct field|0x760|0x4|int|thief move mask|Bitmask to set on the powerup flags upon opening the vault}}
{{Struct field|0x764|0x4|int|''Dialog index''|Index of which DIALOG to play upon opening{{Check}}}}
{{Struct field|0x764|0x4|int|dialog index|Index of which DIALOG to play upon opening{{Check}}}}
{{Struct field|0x768||[[Sly 1:DIALOG|DIALOG]] * [27]|''Unlock dialogues''|Array of pointers to all possible DIALOGs that can play upon opening{{Check}}}}
{{Struct field|0x768||struct DIALOG*[27]|all unlock dialogs|Array of pointers to all possible DIALOGs that can play upon opening{{Check}}}}
{{Struct field|0x7d8|0x4|int|cpdialogPending|Amount of pending DIALOGs}}
{{Struct field|0x7d8|0x4|int|cpdialogPending|Count of pending DIALOG pointers}}
{{Struct field|0x7dc||DIALOG[{{check}}]|apdialogPending|Array of pending DIALOGs}}
{{Struct field|0x7dc||DIALOG[?]|apdialogPending|Array of pending DIALOG pointers}}
{{Struct bottom}}
}}


{{Navbox Sly 1}}
{{Stub}}
{{Stub}}
{{Navbox Sly 1}}

Latest revision as of 16:25, 26 September 2023

VAULT
Data Structure
Click here to upload a new image.Dummy link
GameSly Cooper and the Thievius Raccoonus

VAULT is a struct in Sly Cooper and the Thievius Raccoonus that represents a combination vault in a level. It is used in the functions OpenVault and UpdateVaultActive, among others.

Fields

Offset Size Type Name Notes
0x614 0x4
struct SMA*
psmaVault SMA goal to set upon opening the vault.
0x640 0x4
int
nCombination Vault combination (any three digit number)
0x760 0x4
int
thief move mask Bitmask to set on the powerup flags upon opening the vault
0x764 0x4
int
dialog index Index of which DIALOG to play upon opening[check]
0x768
struct DIALOG*[27]
all unlock dialogs Array of pointers to all possible DIALOGs that can play upon opening[check]
0x7d8 0x4
int
cpdialogPending Count of pending DIALOG pointers
0x7dc
DIALOG[?]
apdialogPending Array of pending DIALOG pointers