-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathpr2.h
68 lines (60 loc) · 2.15 KB
/
pr2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* QW262
* Copyright (C) 2004 [sd] angel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* $Id: pr2.h 695 2007-09-30 14:43:34Z tonik $
*/
#ifndef __PR2_H__
#define __PR2_H__
extern int sv_syscall(int arg, ...);
extern int sv_sys_callex(byte *data, unsigned int len, int fn, pr2val_t*arg);
typedef void (*pr2_trapcall_t)(byte* base, unsigned int mask, pr2val_t* stack, pr2val_t*retval);
//extern int usedll;
extern cvar_t sv_progtype;
extern vm_t* sv_vm;
void PR2_Init(void);
void PR2_UnLoadProgs(void);
void PR2_LoadProgs(void);
void PR2_GameStartFrame(void);
void PR2_LoadEnts(char *data);
void PR2_GameClientConnect(int spec);
void PR2_GamePutClientInServer(int spec);
void PR2_GameClientDisconnect(int spec);
void PR2_GameClientPreThink(int spec);
void PR2_GameClientPostThink(int spec);
qbool PR2_ClientCmd(void);
qbool PR2_ClientSay(int isTeamSay);
void PR2_GameSetNewParms(void);
void PR2_GameSetChangeParms(void);
void PR2_EdictTouch(void);
void PR2_EdictThink(void);
void PR2_EdictBlocked(void);
qbool PR2_UserInfoChanged(void);
void PR2_GameShutDown(void);
void PR2_GameConsoleCommand(void);
void PR2_PausedTic(float duration);
char* PR2_GetString(int);
int PR2_SetString(char*s);
void PR2_RunError(char *error, ...);
void ED2_Free(edict_t *ed);
edict_t* ED2_Alloc(void);
void ED2_ClearEdict(edict_t *e);
eval_t* PR2_GetEdictFieldValue(edict_t *ed, char *field);
int ED2_FindFieldOffset(char *field);
void PR2_InitProg(void);
#endif /* !__PR2_H__ */