Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // SYS_SCRIPTLIB.H
  4. //
  5. // System Utilities.
  6. //=====================================================================================//
  7. #pragma once
  8. #include "vxconsole.h"
  9. #define MAXTOKEN 128
  10. extern void Sys_LoadScriptFile(const char* filename);
  11. extern void Sys_SetScriptData(const char* data, int length);
  12. extern void Sys_FreeScriptFile(void);
  13. extern char* Sys_GetToken(bool crossline);
  14. extern char* Sys_GetQuotedToken(bool crossline);
  15. extern void Sys_UnGetToken(void);
  16. extern bool Sys_TokenAvailable(void);
  17. extern void Sys_SaveParser(void);
  18. extern void Sys_RestoreParser(void);
  19. extern void Sys_ResetParser(void);
  20. extern void Sys_SkipRestOfLine(void);
  21. extern bool Sys_EndOfScript(void);
  22. extern char* Sys_GetRawToken(void);
  23. extern void Sys_StripQuotesFromToken( char *pToken );
  24. extern char g_sys_token[MAXTOKEN];
  25. extern char* g_sys_scriptbuffer;
  26. extern char* g_sys_scriptptr;
  27. extern char* g_sys_scriptendptr;
  28. extern int g_sys_scriptsize;
  29. extern int g_sys_scriptline;
  30. extern bool g_sys_endofscript;