scriplib.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1997-2006 Id Software, Inc.
  4. This file is part of Quake 2 Tools source code.
  5. Quake 2 Tools source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake 2 Tools source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Quake 2 Tools source code; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // scriplib.h
  19. #ifndef __CMDLIB__
  20. #include "cmdlib.h"
  21. #endif
  22. #define MAXTOKEN 1024
  23. extern char token[MAXTOKEN];
  24. extern char *scriptbuffer,*script_p,*scriptend_p;
  25. extern int grabbed;
  26. extern int scriptline;
  27. extern qboolean endofscript;
  28. void LoadScriptFile (char *filename);
  29. void ParseFromMemory (char *buffer, int size);
  30. qboolean GetToken (qboolean crossline);
  31. void UnGetToken (void);
  32. qboolean TokenAvailable (void);