Sly 1:SW: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Layout)
(Updated with new info)
 
Line 1: Line 1:
{{Infobox data structure
{{Infobox data structure
}}
}}
'''SW''' is a struct related to physics objects in {{Sly 1}}. There is a global instance of it called <code>g_psw</code> which apparently all entities store a pointer to.
'''SW''' is a struct related to game objects and entities in {{Sly 1}}. Its internal name is "WORLD".

{{Investigate|What does SW stand for and exactly what kind of data does it store}}
{{Investigate}}


== Notes ==
== Notes ==
* There is a global instance of the SW struct called <code>g_psw</code>. Apparently all entities have a pointer to this global struct called <code>psw</code>.
* If you set an entity's SW pointer (<code>psw</code>) to 00000000 (<code>NULLPTR</code>), it disables all collision for that entity. This suggests that the SW stores pointers or collision data for the objects in a level.
* If you set an entity's <code>psw</code> to 00000000 (<code>nullptr</code>), it disables collision for that entity. This suggests that the SW stores pointers to objects in a level, or at least collision data.


== See also ==
== See also ==
* {{Sly 1|SO}}
* {{Sly 1|LO}}
* {{Sly 1|LO}}
* {{Sly 1|PO}}
* {{Sly 1|PO}}

Latest revision as of 16:49, 7 September 2023

SW
Data Structure
GameSly Cooper and the Thievius Raccoonus

SW is a struct related to game objects and entities in Sly Cooper and the Thievius Raccoonus. Its internal name is "WORLD".

Notes

  • There is a global instance of the SW struct called g_psw. Apparently all entities have a pointer to this global struct called psw.
  • If you set an entity's psw to 00000000 (nullptr), it disables collision for that entity. This suggests that the SW stores pointers to objects in a level, or at least collision data.

See also