OpenTTD Source 20241224-master-gee860a5c8e
|
Implements the Squirrel Standard Function class. More...
#include "../stdafx.h"
#include <squirrel.h>
#include <sqstdmath.h>
#include "../debug.h"
#include "squirrel_std.hpp"
#include "../core/math_func.hpp"
#include "../string_func.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
void | squirrel_register_global_std (Squirrel *engine) |
Register all standard functions that are available on first startup. | |
void | squirrel_register_std (Squirrel *engine) |
Register all standard functions we want to give to a script. | |
Implements the Squirrel Standard Function class.
Definition in file squirrel_std.cpp.
void squirrel_register_global_std | ( | Squirrel * | engine | ) |
Register all standard functions that are available on first startup.
Definition at line 89 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 97 of file squirrel_std.cpp.
References Squirrel::AddMethod(), Squirrel::GetVM(), SquirrelStd::max(), and SquirrelStd::min().
Referenced by ScriptInstance::RegisterAPI().