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.

28 lines
823 B

  1. #ifndef _SCRIPLIB_H_
  2. #define _SCRIPLIB_H_
  3. #define MAXTOKEN 128
  4. extern void TL_LoadScriptFile(const char* filename);
  5. extern void TL_SetScriptData(char* data, int length);
  6. extern void TL_FreeScriptFile(void);
  7. extern char* TL_GetToken(bool crossline);
  8. extern char* TL_GetQuotedToken(bool crossline);
  9. extern void TL_UnGetToken(void);
  10. extern bool TL_TokenAvailable(void);
  11. extern void TL_SaveParser(void);
  12. extern void TL_RestoreParser(void);
  13. extern void TL_ResetParser(void);
  14. extern void TL_SkipRestOfLine(void);
  15. extern bool TL_EndOfScript(void);
  16. extern char* TL_GetRawToken(void);
  17. extern char g_tl_token[MAXTOKEN];
  18. extern char* g_tl_scriptbuffer;
  19. extern char* g_tl_scriptptr;
  20. extern char* g_tl_scriptendptr;
  21. extern int g_tl_scriptsize; // ydnar
  22. extern int g_tl_scriptline;
  23. extern bool g_tl_endofscript;
  24. #endif