mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 04:27:40 +00:00
Move back to 1.3.2 compiler
This commit is contained in:
@@ -3,12 +3,35 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef s32 TAreaId;
|
||||
typedef s32 TEditorId;
|
||||
typedef u16 TUniqueId;
|
||||
struct TAreaId;
|
||||
struct TEditorId;
|
||||
struct TUniqueId;
|
||||
|
||||
extern TAreaId kInvalidAreaId;
|
||||
extern TEditorId kInvalidEditorId;
|
||||
extern TUniqueId kInvalidUniqueId;
|
||||
|
||||
struct TAreaId {
|
||||
s32 value;
|
||||
|
||||
TAreaId() : value(-1) {}
|
||||
TAreaId(s32 value) : value(value) {}
|
||||
s32 Value() const { return value; }
|
||||
|
||||
bool operator==(const TAreaId& other) const { return value == other.value; }
|
||||
bool operator!=(const TAreaId& other) const { return value != other.value; }
|
||||
};
|
||||
struct TEditorId {
|
||||
u32 value;
|
||||
|
||||
TEditorId() : value(-1) {}
|
||||
TEditorId(u32 value) : value(value) {}
|
||||
};
|
||||
struct TUniqueId {
|
||||
u16 value;
|
||||
|
||||
TUniqueId() : value(-1) {}
|
||||
TUniqueId(u16 value) : value(value) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user