OpenTTD Source 20250312-master-gcdcc6b491d
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 167 of file squirrel.cpp.