2009-03-07 20:35:13 +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);
|
|
|
|
void SC_SetEscape (bool esc);
|
|
|
|
void SC_SavePos (void);
|
|
|
|
void SC_RestorePos (void);
|
2016-01-07 19:27:42 +00:00
|
|
|
bool SC_GetString (void);
|
2009-03-07 20:35:13 +00:00
|
|
|
void SC_MustGetString (void);
|
|
|
|
void SC_MustGetStringName (const char *name);
|
|
|
|
bool SC_CheckString (const char *name);
|
|
|
|
bool SC_GetNumber (void);
|
|
|
|
void SC_MustGetNumber (void);
|
|
|
|
bool SC_CheckNumber (void);
|
|
|
|
bool SC_CheckFloat (void);
|
|
|
|
bool SC_GetFloat (void);
|
|
|
|
void SC_MustGetFloat (void);
|
|
|
|
void SC_UnGet (void);
|
|
|
|
//boolean SC_Check(void);
|
|
|
|
bool SC_Compare (const char *text);
|
|
|
|
int SC_MatchString (const char **strings);
|
|
|
|
int SC_MustMatchString (const char **strings);
|
|
|
|
void SC_ScriptError (const char *message, ...);
|
|
|
|
void SC_SaveScriptState();
|
|
|
|
void SC_RestoreScriptState();
|
|
|
|
|
|
|
|
extern char *sc_String;
|
|
|
|
extern int sc_StringLen;
|
|
|
|
extern int sc_Number;
|
2009-03-15 12:18:25 +00:00
|
|
|
extern double sc_Float;
|
2009-03-07 20:35:13 +00:00
|
|
|
extern int sc_Line;
|
|
|
|
extern bool sc_End;
|
|
|
|
extern bool sc_Crossed;
|
|
|
|
extern bool sc_FileScripts;
|
|
|
|
extern bool sc_StringQuoted;
|
|
|
|
extern char *sc_ScriptsDir;
|
2009-06-22 23:09:52 +00:00
|
|
|
//extern FILE *sc_Out;
|
2009-03-07 20:35:13 +00:00
|
|
|
|
|
|
|
#endif //__SC_MAN_H__
|