| 57 |
|
#define COgDefaultTextShade (*_COgDefaultTextShade) |
| 58 |
|
#define COgDefaultTextShadow (*_COgDefaultTextShadow) |
| 59 |
|
#define ONgFileStartup (*_ONgFileStartup) |
| 60 |
+ |
|
| 61 |
+ |
|
| 62 |
|
#undef $ |
| 63 |
|
|
| 64 |
|
//functions |
| 88 |
|
typedef int16_t ( *_ONrGameState_NewCharacter)(void* CHAR, void* AISA, |
| 89 |
|
void* flag, uint32_t* list_location); |
| 90 |
|
typedef ActiveCharacter* ( *_ONrGetActiveCharacter)(void* CharacterPtr); |
| 91 |
+ |
typedef void ( *_ONrCharacter_NewAnimationHook)(Character *ioCharacter, ActiveCharacter *ioActiveCharacter); |
| 92 |
|
//int16_t ONICALL ONrGameState_GetPlayerCharacter(); |
| 93 |
|
|
| 94 |
|
typedef void ( *_COrTextArea_Print)(uint32_t area, uint32_t priority, |
| 115 |
|
//int16_t TSrContext_New ( TSFF*, size 7, ??? 1, ??? 1, ??? 0, TSrContext*); |
| 116 |
|
typedef int16_t ( *_TSrContext_New)( void* FontInstance, int size, int hthsik1,int hthsik2,int hthsik3, void* TSrContext); |
| 117 |
|
|
| 118 |
+ |
typedef int16_t ( *_TSrContext_SetShade)( |
| 119 |
+ |
void *ioTextContext, |
| 120 |
+ |
uint32_t inShade); |
| 121 |
+ |
|
| 122 |
+ |
typedef uint16_t ( *_TRrAnimation_GetDuration)(int Animation); |
| 123 |
+ |
typedef uint16_t ( *_TRrAnimation_GetTo)(int Animation); |
| 124 |
+ |
typedef uint16_t ( *_TRrAnimation_GetFrom)(int Animation); |
| 125 |
+ |
|
| 126 |
+ |
typedef void |
| 127 |
+ |
( *_ONrCharacter_SetHitPoints)( |
| 128 |
+ |
Character *ioCharacter, |
| 129 |
+ |
uint32_t inHitPoints); |
| 130 |
+ |
typedef void ( *_ONrCorpse_Create)(Character* Character); |
| 131 |
|
//yes im cheating so badly. |
| 132 |
|
typedef uint16_t ( *_iSetCharacterClass)(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret); |
| 133 |
+ |
typedef uint16_t ( *_AI2iScript_Spawn)(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret); |
| 134 |
+ |
typedef void * ( *_OBJrObjectType_GetObject_ByNumber)(int inObjectType, int inIndex); |
| 135 |
+ |
typedef int ( *_OBJiObjectGroup_GetNumObjects)(void *inObjectGroup); |
| 136 |
+ |
|
| 137 |
+ |
typedef void ( *_ONrGameState_DeleteCharacter)(Character *inCharacter); |
| 138 |
+ |
|
| 139 |
+ |
typedef char (*OBJtEnumCallback_Object)( |
| 140 |
+ |
void *inObject, |
| 141 |
+ |
int inUserData); |
| 142 |
+ |
|
| 143 |
+ |
typedef int ( *_OBJrObjectType_EnumerateObjects)( |
| 144 |
+ |
int inObjectType, |
| 145 |
+ |
OBJtEnumCallback_Object inEnumCallback, |
| 146 |
+ |
int inUserData); |
| 147 |
+ |
|
| 148 |
+ |
typedef void ( *_OBJrDoor_Open)( DoorObject *inObject, Character *inCharacter ); |
| 149 |
+ |
typedef void ( *_OBJrDoor_ForceOpen)(short id); |
| 150 |
|
|
| 151 |
|
#define ExtFunc(name) extern _##name name |
| 152 |
|
ExtFunc(SLrScript_Command_Register_ReturnType); |
| 155 |
|
ExtFunc(SLrGlobalVariable_Register_Float); |
| 156 |
|
ExtFunc(SLrGlobalVariable_Register_String); |
| 157 |
|
ExtFunc(COrConsole_StatusLine_Display); |
| 158 |
+ |
ExtFunc(OBJrObjectType_EnumerateObjects); |
| 159 |
+ |
//ExtFunc(OBJiObjectGroup_GetNumObjects); |
| 160 |
+ |
ExtFunc(AI2iScript_Spawn); |
| 161 |
+ |
|
| 162 |
+ |
ExtFunc(TRrAnimation_GetDuration); |
| 163 |
+ |
ExtFunc(TRrAnimation_GetFrom); |
| 164 |
+ |
ExtFunc(TRrAnimation_GetTo); |
| 165 |
|
|
| 166 |
|
extern _UUrMachineTime_High UUrMachineTime_High; |
| 167 |
|
extern _UUrMachineTime_High_Frequency UUrMachineTime_High_Frequency; |
| 189 |
|
ExtFunc(ONrPersist_GetWonGame); |
| 190 |
|
ExtFunc(UUrStartupMessage); |
| 191 |
|
|
| 192 |
+ |
ExtFunc(ONrCharacter_NewAnimationHook); |
| 193 |
+ |
ExtFunc(ONrCharacter_SetHitPoints); |
| 194 |
|
ExtFunc(ONrGameState_NewCharacter); |
| 195 |
+ |
ExtFunc(ONrGameState_DeleteCharacter); |
| 196 |
|
ExtFunc(ONrGetActiveCharacter); |
| 197 |
< |
|
| 197 |
> |
ExtFunc(ONrCorpse_Create); |
| 198 |
|
ExtFunc(iSetCharacterClass); |
| 199 |
|
|
| 200 |
|
ExtFunc(COrTextArea_Print); |
| 207 |
|
|
| 208 |
|
ExtFunc(TSrContext_DrawText); |
| 209 |
|
ExtFunc(TSrContext_New); |
| 210 |
+ |
ExtFunc(TSrContext_SetShade); |
| 211 |
+ |
ExtFunc(OBJrDoor_Open); |
| 212 |
+ |
ExtFunc(OBJrDoor_ForceOpen); |
| 213 |
|
#endif |