OpenTTD Source 20260206-master-g4d4e37dbf1
squirrel.hpp File Reference

Defines the Squirrel class. More...

#include <squirrel.h>
#include "../core/convertible_through_base.hpp"

Go to the source code of this file.

Data Structures

class  Squirrel
class  ScriptAllocatorScope

Enumerations

enum class  ScriptType : uint8_t { AI , GS }
 The type of script we're working with, i.e. More...

Variables

ScriptAllocator_squirrel_allocator

Detailed Description

Defines the Squirrel class.

Definition in file squirrel.hpp.

Enumeration Type Documentation

◆ ScriptType

enum class ScriptType : uint8_t
strong

The type of script we're working with, i.e.

for who is it?

Enumerator
AI 

The script is for AI scripts.

GS 

The script is for Game scripts.

Definition at line 17 of file squirrel.hpp.

Variable Documentation

◆ _squirrel_allocator

ScriptAllocator* _squirrel_allocator
extern

Definition at line 171 of file squirrel.cpp.