scriplib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void LoadScriptFile (const char *filename)
void ParseFromMemory (char *buffer, int size)
 Parses e.g. the entity string that is already stored in memory.
qboolean GetToken (qboolean crossline)
 Parses the next token from the current script on the stack and store the result in parsedToken.
qboolean TokenAvailable (void)
 Returns true if there is another token on the line.
int GetScriptLine (void)

Variables

char parsedToken [MAX_TOKEN_CHARS]

Detailed Description

Definition in file scriplib.h.


Function Documentation

int GetScriptLine ( void   ) 

Definition at line 50 of file scriplib.c.

References script_t::line.

Referenced by ParseBrush().

qboolean GetToken ( qboolean  crossline  ) 

Parses the next token from the current script on the stack and store the result in parsedToken.

Parameters:
[in] crossline The next token may not be seperated by comment or newline if this is true - everything must be on the same line

Definition at line 131 of file scriplib.c.

References script_t::end_p, EndOfScript(), script_t::line, MAX_TOKEN_CHARS, parsedToken, qtrue, script_t::script_p, and Sys_Error().

Referenced by EndOfScript(), ParseBrush(), ParseEntity(), ParseEpair(), and ParseMapEntity().

void LoadScriptFile ( const char *  filename  ) 

Definition at line 82 of file scriplib.c.

References AddScriptToStack().

Referenced by LoadMapFile().

void ParseFromMemory ( char *  buffer,
int  size 
)

Parses e.g. the entity string that is already stored in memory.

Definition at line 91 of file scriplib.c.

References script_t::buffer, script_t::end_p, script_t::filename, script_t::line, MAX_INCLUDES, Q_strncpyz(), script_t::script_p, and Sys_Error().

Referenced by ParseEntities().

qboolean TokenAvailable ( void   ) 

Returns true if there is another token on the line.

Definition at line 198 of file scriplib.c.

References script_t::end_p, qfalse, qtrue, and script_t::script_p.

Referenced by ParseBrush().


Variable Documentation

char parsedToken[MAX_TOKEN_CHARS]

Generated by  doxygen 1.6.2