|
OpenTTD Source 20251117-master-g7398d2e290
|
defines the Squirrel Standard Function class More...
#include "squirrel.hpp"Go to the source code of this file.
Data Structures | |
| class | SquirrelStd |
| By default we want to give a set of standard commands to a SQ script. More... | |
Functions | |
| void | squirrel_register_std (Squirrel &engine) |
| Register all standard functions we want to give to a script. | |
| void | squirrel_register_global_std (Squirrel &engine) |
| Register all standard functions that are available on first startup. | |
defines the Squirrel Standard Function class
Definition in file squirrel_std.hpp.
| void squirrel_register_global_std | ( | Squirrel & | engine | ) |
Register all standard functions that are available on first startup.
Definition at line 85 of file squirrel_std.cpp.
References Squirrel::AddMethod(), SquirrelStd::notifyallexceptions(), and SquirrelStd::require().
Referenced by Squirrel::Initialize().
| void squirrel_register_std | ( | Squirrel & | engine | ) |
Register all standard functions we want to give to a script.
Definition at line 93 of file squirrel_std.cpp.
References Squirrel::AddMethod(), Squirrel::GetVM(), SquirrelStd::max(), and SquirrelStd::min().
Referenced by ScriptInstance::RegisterAPI().