| 3 |
tristanc |
1 |
#ifndef _FRAMESCRIPT_H_
|
|
|
2 |
#define _FRAMESCRIPT_H_
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
#include "pch.h"
|
|
|
6 |
#pragma hdrstop
|
|
|
7 |
|
|
|
8 |
extern "C" {
|
|
|
9 |
#include <lua.h>
|
|
|
10 |
#include <lualib.h>
|
|
|
11 |
#include <lauxlib.h>
|
|
|
12 |
}
|
|
|
13 |
|
| 31 |
tristanc |
14 |
|
|
|
15 |
enum SCRIPTEVENT {
|
| 3 |
tristanc |
16 |
// TODO
|
| 31 |
tristanc |
17 |
SCRIPT_TIME_PLAYED_MSG = 241,
|
|
|
18 |
SCRIPT_CVAR_UPDATE = 312
|
| 3 |
tristanc |
19 |
};
|
|
|
20 |
|
| 31 |
tristanc |
21 |
enum FRAMESCRIPT_GENDER {
|
|
|
22 |
GENDER_NOT_APPLICABLE = 0x0,
|
|
|
23 |
GENDER_NONE = 0x1,
|
|
|
24 |
GENDER_MALE = 0x2,
|
|
|
25 |
GENDER_FEMALE = 0x3,
|
|
|
26 |
GENDER_MALE_PLURAL = 0x4,
|
|
|
27 |
GENDER_FEMALE_PLURAL = 0x5,
|
|
|
28 |
GENDER_MIXED_PLURAL = 0x6
|
| 3 |
tristanc |
29 |
};
|
|
|
30 |
|
|
|
31 |
|
| 36 |
tristanc |
32 |
/******************************************************************************
|
| 3 |
tristanc |
33 |
*
|
| 31 |
tristanc |
34 |
* External
|
| 3 |
tristanc |
35 |
*
|
|
|
36 |
***/
|
|
|
37 |
|
| 36 |
tristanc |
38 |
//=============================================================================
|
| 3 |
tristanc |
39 |
extern void FrameScript_Execute (LPCSTR function, LPCSTR arguments, LPCSTR taint);
|
|
|
40 |
|
| 36 |
tristanc |
41 |
//=============================================================================
|
| 3 |
tristanc |
42 |
extern PCHAR FrameScript_GetText (LPCSTR text, int a2, FRAMESCRIPT_GENDER gender);
|
|
|
43 |
|
| 36 |
tristanc |
44 |
//=============================================================================
|
| 3 |
tristanc |
45 |
extern void FrameScript_RegisterFunction (LPCSTR name, int (*fcn)(lua_State*));
|
|
|
46 |
|
| 36 |
tristanc |
47 |
//=============================================================================
|
| 3 |
tristanc |
48 |
extern void FrameScript_SignalEvent (SCRIPTEVENT eventID);
|
|
|
49 |
|
| 36 |
tristanc |
50 |
//=============================================================================
|
| 3 |
tristanc |
51 |
extern void FrameScript_SignalEvent (SCRIPTEVENT eventID, LPCSTR string, ...);
|
|
|
52 |
|
| 36 |
tristanc |
53 |
//=============================================================================
|
| 3 |
tristanc |
54 |
extern void FrameScript_UnregisterFunction (LPCSTR name);
|
|
|
55 |
|
| 36 |
tristanc |
56 |
//=============================================================================
|
| 3 |
tristanc |
57 |
LUA_API void _lua_pushstring(lua_State* L, LPCSTR s);
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
#endif // ifndef _FRAMESCRIPT_H_
|
| 32 |
tristanc |
61 |
|