OpenTTD Source
20241121-master-g67a0fccfad
|
Implementation of ScriptInstance. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../saveload/saveload.h"
#include "../script/squirrel_class.hpp"
#include "../script/squirrel_std.hpp"
#include "script_fatalerror.hpp"
#include "script_storage.hpp"
#include "script_info.hpp"
#include "script_instance.hpp"
#include "api/script_controller.hpp"
#include "api/script_error.hpp"
#include "api/script_event.hpp"
#include "api/script_log.hpp"
#include "../company_base.h"
#include "../company_func.h"
#include "../fileio_func.h"
#include "../league_type.h"
#include "../misc/endian_buffer.hpp"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static void | PrintFunc (bool error_msg, const std::string &message) |
Callback called by squirrel when a script uses "print" and for error messages. More... | |
Variables | |
static uint8_t | _script_sl_byte |
Used as source/target by the script saveload code to store/load a single byte. | |
static const SaveLoad | _script_byte [] |
SaveLoad array that saves/loads exactly one byte. More... | |
Implementation of ScriptInstance.
Definition in file script_instance.cpp.
|
static |
Callback called by squirrel when a script uses "print" and for error messages.
error_msg | Is this an error message? |
message | The actual message text. |
Definition at line 46 of file script_instance.cpp.
Referenced by ScriptInstance::ScriptInstance().
|
static |
SaveLoad array that saves/loads exactly one byte.
Definition at line 350 of file script_instance.cpp.
Referenced by ScriptInstance::Load(), ScriptInstance::LoadEmpty(), ScriptInstance::LoadObjects(), ScriptInstance::Save(), ScriptInstance::SaveEmpty(), and ScriptInstance::SaveObject().