mm icon indicating copy to clipboard operation
mm copied to clipboard

Player preparation 1

Open AngheloAlf opened this issue 2 years ago • 1 comments

This PR brings over some changes in preparation for player_actor, mainly stuff used outside of the overlay itself.

  • New player enums: PlayerDoorType, PlayerModelGroup, PlayerLimb, PlayerBodyPart, PlayerCsMode, PlayerInitMode
  • PlayerAnimationFrame: Represents one frame of animation of player. This is added because player animations are kinda special and are not plain Vec3s but have an extra member for the face info.
  • Some Player members were named
  • Many forward function declaration added to functions.h and some other fixes.
  • Named functions:
    • func_800B75A0 -> Actor_GetSlopeDirection: This function was part of z_player.c on OoT but moved to z_actor.c on MM.
    • func_800B90F4 -> Actor_DeactivateLens
  • Start using some player enum types on some player related functions when it still matches.
  • Change SkelAnime functions related to player animations to take a void* instead of a Vec3s* for jointTable and morphTable
  • Add placeholders to the ItemId, GetItemID, GetItemDrawID, PlayerActionParam enums
  • Add alignment.h header

I'm opening this PR as a draft because m2c currently does not like PLAYER_LIMB_BUF_SIZE. See discussion here: https://discord.com/channels/688807550715560050/703351323445428306/1013302791239893123

AngheloAlf avatar Aug 28 '22 17:08 AngheloAlf

I'll undraft this since m2c updated and now the macro is not a problem anymore

AngheloAlf avatar Aug 28 '22 20:08 AngheloAlf