feat(profile): refactor lua, bc code

This commit is contained in:
phaneron 2026-04-01 17:37:40 -04:00
parent e79ee08905
commit 37db5336e4
40 changed files with 3424 additions and 0 deletions

View file

@ -0,0 +1,12 @@
// TimeConst::FILETIMETimestampBias
// TimeConst::FILETIMETimestampMax
// TimeConst::FILETIMETimestampMin
// TimeConst::TimestampsPerFILETIME
// TimeConst::TimestampsPerSecond
// TimeConst::TimestampsPerUnixtime
// TimeConst::TimestampUnixBias
// TimeConst::TimestampUnixMax
// TimeConst::TimestampUnixMin
// TimeConst::UnixTime64TimestampMax
// TimeConst::UnixTime64TimestampMin
// TimeConst::UnixTimestampBias

View file

@ -0,0 +1,38 @@
#ifndef BC_TIME_TYPES_H
#define BC_TIME_TYPES_H
// TimeRec
DECLARE_STRUCT(Blizzard__Time__TimeRec);
// TimeRec
struct Blizzard__Time__TimeRec {
int32_t year;
int32_t month;
int32_t day;
int32_t hour;
int32_t minute;
int32_t second;
int32_t nanosecond;
int32_t dayOfWeek;
int32_t dayOfYear;
};
// UnixTime
typedef int32_t Blizzard__Time__UnixTime;
// Timestamp
typedef int64_t Blizzard__Time__Timestamp;
// Second
typedef uint32_t Blizzard__Time__Second;
// Millisecond
typedef uint32_t Bizzard__Time__Millisecond;
// Microsecond
typedef uint64_t Blizzard__Time__Microsecond;
// Nanosecond
typedef uint64_t Blizzard__Time__Nanosecond;
#endif