2006-02-24 04:48:15 +00:00
|
|
|
#ifndef __SC_MAN_H__
|
|
|
|
#define __SC_MAN_H__
|
|
|
|
|
|
|
|
void SC_Open (const char *name);
|
|
|
|
void SC_OpenFile (const char *name);
|
|
|
|
void SC_OpenMem (const char *name, char *buffer, int size);
|
|
|
|
void SC_OpenLumpNum (int lump, const char *name);
|
|
|
|
void SC_Close (void);
|
|
|
|
void SC_SetCMode (bool cmode);
|
2006-04-11 08:36:23 +00:00
|
|
|
void SC_SetEscape (bool esc);
|
2006-02-24 04:48:15 +00:00
|
|
|
void SC_SavePos (void);
|
|
|
|
void SC_RestorePos (void);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool SC_GetString (void);
|
2006-02-24 04:48:15 +00:00
|
|
|
void SC_MustGetString (void);
|
|
|
|
void SC_MustGetStringName (const char *name);
|
|
|
|
bool SC_CheckString (const char *name);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool SC_GetNumber (void);
|
2006-02-24 04:48:15 +00:00
|
|
|
void SC_MustGetNumber (void);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool SC_CheckNumber (void);
|
|
|
|
bool SC_CheckFloat (void);
|
|
|
|
bool SC_GetFloat (void);
|
2006-02-24 04:48:15 +00:00
|
|
|
void SC_MustGetFloat (void);
|
|
|
|
void SC_UnGet (void);
|
|
|
|
//boolean SC_Check(void);
|
2006-09-14 00:02:31 +00:00
|
|
|
bool SC_Compare (const char *text);
|
2006-02-24 04:48:15 +00:00
|
|
|
int SC_MatchString (const char **strings);
|
|
|
|
int SC_MustMatchString (const char **strings);
|
|
|
|
void STACK_ARGS SC_ScriptError (const char *message, ...);
|
2006-04-30 21:49:18 +00:00
|
|
|
void SC_SaveScriptState();
|
|
|
|
void SC_RestoreScriptState();
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
extern char *sc_String;
|
|
|
|
extern int sc_StringLen;
|
|
|
|
extern int sc_Number;
|
|
|
|
extern float sc_Float;
|
|
|
|
extern int sc_Line;
|
2006-09-14 00:02:31 +00:00
|
|
|
extern bool sc_End;
|
|
|
|
extern bool sc_Crossed;
|
|
|
|
extern bool sc_FileScripts;
|
2006-02-24 04:48:15 +00:00
|
|
|
extern char *sc_ScriptsDir;
|
|
|
|
|
|
|
|
#endif //__SC_MAN_H__
|