Files
st/include/Unknown/UnkStruct_02049bac.hpp
T
Yanis 2bc13d2ec2 Misc stuff 7 (#112)
* document zcb a tiny bit and add some item manager setters

* add more item manager setters

* add more and more item manager setters

* ...

* gcc fix

* gcc fix 2
2026-07-17 17:54:07 +02:00

56 lines
945 B
C++

#pragma once
#include "global.h"
#include "types.h"
union Date {
struct {
u16 day : 5;
u16 month : 4;
u16 year : 7;
};
u16 data[1];
void operator=(Date &from) {
#if __MWERKS__
this->data = from.data;
#else
this->data[0] = from.data[0];
#endif
}
void operator=(s16 from) {
this->data[0] = from;
}
bool operator==(u16 other) {
return other == this->data[0];
}
bool operator!=(u16 other) {
return !(*this == other);
}
bool operator==(Date &other) {
return this->data[0] == other.data[0];
}
bool operator!=(Date &other) {
return !(*this == other);
}
};
class UnkStruct_02049bac {
public:
/* 00 */ unk32 mUnk_00;
UnkStruct_02049bac();
~UnkStruct_02049bac();
void func_02014a34(Date *param1);
u64 func_02014b00();
};
// some time system?
extern UnkStruct_02049bac data_02049bac;