1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-08 07:20:16 +00:00

Doc player drawing (#1098)

* Introduce and use more enums and defines for equips and data involved in player drawing

* `EQUIP_TYPE_`, `EQUIP_INV_`, `EQUIP_VALUE_`

* Improve doc on ItemEquips/Inventory's `equipment` field

* Run formatter

* Add `PLAYER_MODELGROUPENTRY_*` for second index of `gPlayerModelTypes`

* Name `PLAYER_MODELGROUPENTRY_*` from existing documentation

* Partial doc on `PLAYER_MODELTYPE_*`

* Some doc on `PLAYER_MODELGROUP_*`

* Run formatter

* Name and some doc/cleanup on the various player draw functions

* Name symbols used for player position in pause menu

* Name player override/post limb draw callbacks

* `BOOTS_NORMAL` -> `BOOTS_KOKIRI`

* `EQUIP_INV_SWORD_GIANTKNIFE` -> `EQUIP_INV_SWORD_BROKENGIANTKNIFE`

* `currentSword` -> `currentSwordItem` to avoid confusion with `PlayerSword` enum

* Make one constant more explicit

* Document severe bug (not an issue by luck)

* Some doc on `PLAYER_MODELTYPE_RH_FF`

* Actually name most of `PlayerModelType`

* Actually name most of `PlayerModelGroup` and improve comments

* Make equipment in debug save data use equip enums

* Name symbol for computing player's `bodyPartsPos` and fix struct access

* Name right/left `HandType` symbols

* Add `PlayerBodyPart` enum

* Run formatter

* Introduce defines for pause player render dimensions and cleanup viewport usage in pause drawing

* Document `playerSegment` related usage

* Run formatter

* Revert player bodypart changes

* Revert equips doc changes

* Revert player model and anim data changes

* Revert drawing-unrelated changes

* Move `sTunicColors` tunic comments to after data
This commit is contained in:
Dragorn421 2022-03-13 01:06:43 +01:00 committed by GitHub
parent a160fb96c8
commit 054bac7583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 112 additions and 85 deletions

View file

@ -11,19 +11,19 @@
<Texture Name="gLinkTunic2Tex" OutName="link_tunic_2" Format="i8" Width="16" Height="16" Offset="0x1C40"/>
<Texture Name="gLinkTunic3Tex" OutName="link_tunic_3" Format="i8" Width="16" Height="32" Offset="0x1D40"/>
<Texture Name="gLinkTunic4Tex" OutName="link_tunic_4" Format="i8" Width="16" Height="16" Offset="0x1F40"/>
<Array Name="D_04002040" Count="24" Offset="0x2040">
<Array Name="gLinkPauseChildJointTable" Count="24" Offset="0x2040">
<Vector Type="s16" Dimensions="3"/>
</Array>
<Array Name="D_040020D0" Count="24" Offset="0x20D0">
<Array Name="gLinkPauseChildDekuShieldJointTable" Count="24" Offset="0x20D0">
<Vector Type="s16" Dimensions="3"/>
</Array>
<Array Name="D_04002160" Count="24" Offset="0x2160">
<Array Name="gLinkPauseAdultBgsJointTable" Count="24" Offset="0x2160">
<Vector Type="s16" Dimensions="3"/>
</Array>
<Array Name="D_040021F0" Count="24" Offset="0x21F0">
<Array Name="gLinkPauseAdultJointTable" Count="24" Offset="0x21F0">
<Vector Type="s16" Dimensions="3"/>
</Array>
<Array Name="D_04002280" Count="24" Offset="0x2280">
<Array Name="gLinkPauseAdultShieldJointTable" Count="24" Offset="0x2280">
<Vector Type="s16" Dimensions="3"/>
</Array>