OpenTTD Source 20241224-master-gee860a5c8e
script_instance.hpp File Reference

The ScriptInstance tracks a script. More...

#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.

Variable Documentation

◆ SQUIRREL_MAX_DEPTH

const uint SQUIRREL_MAX_DEPTH = 25
static

The maximum recursive depth for items stored in the savegame.

Definition at line 22 of file script_instance.hpp.

Referenced by ScriptInstance::Save().