|
UFO: Alien Invasion
|

Go to the source code of this file.
Data Structures | |
| struct | script_t |
Functions | |
| void | LoadScriptFile (const char *filename) |
| void | ParseFromMemory (char *buffer, int size) |
| Parses e.g. the entity string that is already stored in memory. | |
| const char * | GetToken () |
Parses the next token from the current script on the stack and store the result in parsedToken. | |
| bool | TokenAvailable (void) |
| Returns true if there is another token on the line. | |
Variables | |
| static script_t | script |
| char | parsedToken [MAX_TOKEN_CHARS] |
Definition in file scriplib.cpp.
| const char * GetToken | ( | ) |
Parses the next token from the current script on the stack and store the result in parsedToken.
Definition at line 75 of file scriplib.cpp.
References Com_Parse(), Mem_Free, parsedToken, Q_streq, Q_strnull(), and script.
Referenced by ParseBrush(), ParseEntity(), ParseEpair(), and ParseMapEntity().
| void LoadScriptFile | ( | const char * | filename | ) |
Definition at line 47 of file scriplib.cpp.
References FS_LoadFile(), script, and Sys_Error().
Referenced by LoadMapFile().
Parses e.g. the entity string that is already stored in memory.
Definition at line 62 of file scriplib.cpp.
References Q_strncpyz(), and script.
Referenced by ParseEntities().
| bool TokenAvailable | ( | void | ) |
Returns true if there is another token on the line.
Definition at line 92 of file scriplib.cpp.
References script.
Referenced by ParseBrush().
| char parsedToken[MAX_TOKEN_CHARS] |
Definition at line 45 of file scriplib.cpp.
Referenced by ED_ParseEntities(), ED_ParseType(), GetToken(), ParseBrush(), ParseEntity(), ParseEpair(), and ParseMapEntity().
|
static |
Definition at line 43 of file scriplib.cpp.
Referenced by GetToken(), LoadScriptFile(), ParseFromMemory(), and TokenAvailable().