OpenTTD Source  20240919-master-gdf0233f4c2
script_info.hpp File Reference
#include <squirrel.h>
#include "../misc/countedptr.hpp"
#include "script_config.hpp"

Go to the source code of this file.

Data Structures

class  ScriptInfo
 All static information from an Script like name, version, etc. More...
 

Functions

void Script_CreateDummyInfo (HSQUIRRELVM vm, const char *type, const char *dir)
 Run the dummy info.nut.
 
void Script_CreateDummy (HSQUIRRELVM vm, StringID string, const char *type)
 Run the dummy AI and let it generate an error message.
 

Variables

static const int MAX_SL_OPS = 100000
 The maximum number of operations for saving or loading the data of a script.
 
static const int MAX_CONSTRUCTOR_OPS = 100000
 The maximum number of operations for initial start of a script.
 
static const int MAX_CREATEINSTANCE_OPS = 100000
 Number of operations to create an instance of a script.
 
static const int MAX_GET_OPS = 1000
 Number of operations to get the author and similar information.
 
static const int MAX_GET_SETTING_OPS = 100000
 Maximum number of operations allowed for getting a particular setting.
 

Detailed Description

ScriptInfo keeps track of all information of a script, like Author, Description, ...

Definition in file script_info.hpp.