ScriptScanner Class Reference

Scanner to help finding scripts. More...

#include <script_scanner.hpp>

Inheritance diagram for ScriptScanner:
AIScanner

Public Member Functions

class SquirrelGetEngine ()
 Get the engine of the main squirrel handler (it indexes all available scripts).
const char * GetMainScript ()
 Get the current main script the ScanDir is currently tracking.
void ScanScriptDir (const char *info_file_name, Subdirectory search_dir)
 Rescan for scripts.

Protected Attributes

class Squirrelengine
 The engine we're scanning with.
char main_script [1024]
 The name of the current main script.

Private Member Functions

void ScanDir (const char *dirname, const char *info_file_name)
 Scan a dir for scripts.

Detailed Description

Scanner to help finding scripts.

Definition at line 18 of file script_scanner.hpp.


Member Function Documentation

void ScriptScanner::ScanScriptDir ( const char *  info_file_name,
Subdirectory  search_dir 
)

Rescan for scripts.

Parameters:
info_file_name The name of the 'info.nut' file.
search_dir The subdirecotry to search for scripts.

Definition at line 84 of file script_scanner.cpp.

References FOR_ALL_SEARCHPATHS, and ScanDir().

Referenced by AIScanner::RescanAIDir().


The documentation for this class was generated from the following files:

Generated on Fri May 27 04:21:11 2011 for OpenTTD by  doxygen 1.6.1