Sly 2:Task
Jump to navigation
Jump to search
Data Structure | |
---|---|
Game | Sly 2: Band of Thieves |
Official Name | No |
The Task struct is a single node in the DAG which manages the current game state. Tasks may be associated with a particular Mission or Checkpoint.
Fields[edit | edit source]
Offset | Size | Type | Name | Description |
---|---|---|---|---|
0x18 | 4 | int
|
id
|
Unique ID for the task |
0x20 | 4 | struct Task*
|
pnext
|
Pointer to the next task |
0x54 | 4 | enum TASKS
|
tasks
|
Current task state (0, 1, 2, or 3) |
0x7c | 4 | struct Mission*
|
pmission
|
Mission pointer |
0x94 | 4 | int
|
cparents
|
Count of parent nodes |
0x98 | 4 | struct Task**
|
paparents
|
Pointer to array of parent nodes |
0xa0 | 4 | int
|
cchildren
|
Count of child nodes |
0xa4 | 4 | struct Task**
|
pachildren
|
Pointer to array or child nodes |
0xb8 | 4 | int
|
checkpoint ID
|
ID of the associated checkpoint (0 if none) |
0xbc | 4 | int
|
checkpoint map ID
|
Map ID for the checkpoint, if any |
0xc0 | 4 | int
|
checkpoint player ID
|
ID of the player character for the checkpoint, if any |
This topic needs further investigation. |