Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
object-id.h
Go to the documentation of this file.
1#ifndef OBJECT_ID_H
2#define OBJECT_ID_H
3
4#include "dolphin/types.h"
5
6namespace JStudio {
7namespace object {
8
9
10struct TIDData {
11public:
12 TIDData(const void* id, u32 id_size) : mID(id), mID_size(id_size) {}
13
14 /* 80288988 */ static bool isEqual(JStudio::object::TIDData const&, JStudio::object::TIDData const&);
15 inline const void* getID() const { return mID; }
16 inline u32 getIDSize() const { return mID_size; }
17
18private:
19 /* 0x00 */ const void* mID;
20 /* 0x04 */ u32 mID_size;
21};
22
23struct TPRObject_ID_equal : public TIDData {
24 TPRObject_ID_equal(const void* id, u32 id_size) : TIDData(id, id_size) {}
25};
26
27struct TObject_ID : public TIDData {
28 TObject_ID(const void* id, u32 id_size) : TIDData(id, id_size) {}
29};
30
31} // namespace object
32} // namespace JStudio
33
34#endif /* OBJECT_ID_H */
static SECTION_RODATA u8 const id[8]
Definition d_a_npc_bans.cpp:1309
Definition functionvalue.cpp:318
Definition object-id.h:10
u32 mID_size
Definition object-id.h:20
const void * mID
Definition object-id.h:19
const void * getID() const
Definition object-id.h:15
TIDData(const void *id, u32 id_size)
Definition object-id.h:12
static bool isEqual(JStudio::object::TIDData const &, JStudio::object::TIDData const &)
Definition object-id.cpp:9
u32 getIDSize() const
Definition object-id.h:16
Definition object-id.h:27
TObject_ID(const void *id, u32 id_size)
Definition object-id.h:28
Definition object-id.h:23
TPRObject_ID_equal(const void *id, u32 id_size)
Definition object-id.h:24
unsigned long u32
Definition types.h:10