mirror of
https://github.com/zeldaret/ph
synced 2026-07-07 21:31:01 -04:00
Decomp ItemManager::PlayItemFanfareSfx
This commit is contained in:
@@ -89,7 +89,7 @@ enum ItemFlag_ {
|
||||
|
||||
typedef s32 ItemId;
|
||||
enum ItemId_ {
|
||||
/* 0x00 */ ItemId_Unk_0 = 0,
|
||||
/* 0x00 */ ItemId_None = 0,
|
||||
/* 0x01 */ ItemId_SmallKey = 1,
|
||||
/* 0x02 */ ItemId_GreenRupee = 2,
|
||||
/* 0x03 */ ItemId_OshusSword = 3,
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#include "Map/MapManager.hpp"
|
||||
#include "Player/EquipItem.hpp"
|
||||
#include "Player/HealthManager.hpp"
|
||||
#include "Sound/Sfx.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
#include "System/OverlayManager.hpp"
|
||||
#include "Render/ModelRender.hpp"
|
||||
@@ -222,7 +223,7 @@ private:
|
||||
/* 138 */ u32 mSalvagedTreasureFlags;
|
||||
/* 13c */ ShipPartPricesShown mShipPartPricesShown;
|
||||
/* 148 */ u32 mTreasurePriceShownFlags[CEIL_DIV(Treasure_COUNT, 32)];
|
||||
/* 14c */ unk8 mUnk_14c;
|
||||
/* 14c */ bool mUnk_14c;
|
||||
/* 14d */ u8 mUnk_14d;
|
||||
/* 14e */ unk8 mUnk_14e[0x2];
|
||||
/* 150 */
|
||||
@@ -278,6 +279,7 @@ public:
|
||||
void LoadFanfareItem(ItemId id);
|
||||
bool GetFanfareItemScale(Vec3p *pScale) const;
|
||||
void LoadDungeonItemModels();
|
||||
static void PlayItemFanfareSfx(ItemId item);
|
||||
|
||||
// Ship
|
||||
ShipType GetEquippedShipPart(ShipPart part) const;
|
||||
@@ -327,7 +329,6 @@ public:
|
||||
|
||||
// Unknown
|
||||
void func_ov00_020ae4dc(s32 param1);
|
||||
void func_ov00_020ae648(unk32 param1, unk32 param2, unk32 param3);
|
||||
};
|
||||
|
||||
extern ItemManager *gItemManager;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
typedef u32 SfxId;
|
||||
enum SfxId_ {
|
||||
SfxId_FanfareDefault = 0x28,
|
||||
SfxId_FanfareRupee = 0x29,
|
||||
SfxId_FanfareGoldRupee = 0x2a,
|
||||
SfxId_FanfareRupoor = 0x2b,
|
||||
SfxId_FanfareNothing = 0x2c,
|
||||
SfxId_FanfareHeartContainer = 0x2d,
|
||||
SfxId_FanfareGem = 0x2e,
|
||||
};
|
||||
Reference in New Issue
Block a user