OpenTTD Source  20240919-master-gdf0233f4c2
script_instance.hpp File Reference
#include <variant>
#include <squirrel.h>
#include "script_suspend.hpp"
#include "script_log_types.hpp"
#include "../command_type.h"
#include "../company_type.h"
#include "../fileio_type.h"

Go to the source code of this file.

Data Structures

class  ScriptInstance
 Runtime information about a script like a pointer to the squirrel vm and the current state. More...
 

Variables

static const uint SQUIRREL_MAX_DEPTH = 25
 The maximum recursive depth for items stored in the savegame.
 

Detailed Description

The ScriptInstance tracks a script.

Definition in file script_instance.hpp.