#pragma once #ifndef BFW_UTILITY_H #define BFW_UTILITY_H #include #include #include "Daodan.h" void __cdecl UUrStartupMessage(const char* fmt, ...); int64_t ONICALL UUrMachineTime_High(); double ONICALL UUrMachineTime_High_Frequency(); int64_t ONICALL UUrMachineTime_Sixtieths(); void ONICALL UUrPlatform_Initialize(); void ONICALL UUrPlatform_Terminate(); typedef struct { int16_t Top; int16_t Left; int16_t Right; int16_t Bottom; } OniRectangle; void* TestContext; void ONICALL COrTextArea_Print(uint32_t area, uint32_t priority, uint32_t textshade, uint32_t textshadowshade, const char* text, uint32_t unk_alwaws_0, uint32_t fadetime); int ONICALL COrMessage_Print(char* Message, char* Key, void* noidea); void ONICALL COrMessage_Remove(char* Key); int16_t ONICALL TSrContext_DrawText(uint32_t TSrContext, char* Text, int alpha, uint32_t usuallyzero, OniRectangle* pRect); int16_t ONICALL TSrContext_New( void* FontInstance, int size, int hthsik1,int hthsik2,int hthsik3, void* TSrContext); //int16_t TSrContext_New( TSFF*, size 7, ??? 1, ??? 1, ??? 0, TSrContext*); int16_t ONICALL TMrInstance_GetDataPtr(int, char*, void*); //int TMrInstance_GetDataPtr( Type 'TSFF', char* "Tahoma", ptr); int __cdecl AUrMessageBox(int Buttons, char *Message, ...); extern uint32_t COgConsoleLines; extern uint32_t COgFadeTimeValue; extern uint32_t COgDefaultTextShade; extern uint32_t COgDefaultTextShadow; extern FILE* ONgFileStartup; #endif