1999-04-07 02:00:00 +02:00
|
|
|
/***
|
|
|
|
*
|
2001-11-08 01:00:00 +01:00
|
|
|
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
|
1999-04-07 02:00:00 +02:00
|
|
|
*
|
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
|
|
|
|
// scriplib.h
|
|
|
|
|
|
|
|
#ifndef __CMDLIB__
|
|
|
|
#include "cmdlib.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MAXTOKEN 512
|
|
|
|
|
|
|
|
extern char token[MAXTOKEN];
|
|
|
|
extern char *scriptbuffer,*script_p,*scriptend_p;
|
|
|
|
extern int grabbed;
|
|
|
|
extern int scriptline;
|
|
|
|
extern qboolean endofscript;
|
|
|
|
|
|
|
|
|
|
|
|
void LoadScriptFile (char *filename);
|
|
|
|
void ParseFromMemory (char *buffer, int size);
|
|
|
|
|
|
|
|
qboolean GetToken (qboolean crossline);
|
|
|
|
void UnGetToken (void);
|
|
|
|
qboolean TokenAvailable (void);
|
|
|
|
|
|
|
|
|