Files
st/include/Unknown/UnkStruct_02049bac.hpp
T
Yanis 96874ba24e Decompile overlay 1 (Part 8) (#108)
* UnkStruct_027e09b4_001 OK

* UnkStruct_027e09ac_001 OK

* UnkStruct_027e0cec_001 OK

* SysNew OK

* UnkStruct_027e0cec_18_001 OK

* UnkStruct_027e0ce0_34_001 OK

* UnkStruct_027e0d00_001 OK

* PassengerManager_001 OK

* UnkStruct_027e0cf8_08_00_001 OK

* UnkStruct_ov020_020e8544_001 OK

* code_020bfdd0 OK and code_020bfeec OK

* code_020c099c OK
2026-07-15 20:19:35 +02:00

52 lines
879 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) {
this->data = from.data;
}
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;