mirror of
https://github.com/zeldaret/ph
synced 2026-07-11 14:38:44 -04:00
93% match Inventory::Load
This commit is contained in:
@@ -5,12 +5,15 @@
|
||||
#include "Player/EquipItem.hpp"
|
||||
#include "Actors/Navi/Navi.hpp"
|
||||
|
||||
#define MAX_HOURGLASS_SECONDS 1500 // 25 minutes
|
||||
|
||||
typedef u32 FairyId;
|
||||
enum FairyId_ {
|
||||
FairyId_None = -1,
|
||||
FairyId_Courage = 0,
|
||||
FairyId_Power = 1,
|
||||
FairyId_Wisdom = 2,
|
||||
FairyId_COUNT = 3,
|
||||
};
|
||||
|
||||
enum Gem {
|
||||
@@ -213,6 +216,9 @@ public:
|
||||
|
||||
void ClearPrevEquippedItem();
|
||||
void Save(SaveInventory *save);
|
||||
void Load(const SaveInventory *save);
|
||||
|
||||
bool HasItem(ItemFlag item);
|
||||
};
|
||||
|
||||
extern Inventory *gInventory;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef PH_GLOBAL_H
|
||||
#define PH_GLOBAL_H
|
||||
|
||||
#define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[pos >> 5]) != 0)
|
||||
|
||||
#ifdef NONMATCHING
|
||||
#define NONMATCH
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user