OpenTTD Source 20241224-master-gee860a5c8e
|
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. | |
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. | |
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().
|
static |
Used as source/target by the script saveload code to store/load a single byte.
Definition at line 347 of file script_instance.cpp.
Referenced by ScriptInstance::Load(), ScriptInstance::LoadEmpty(), ScriptInstance::LoadObjects(), ScriptInstance::Save(), ScriptInstance::SaveEmpty(), and ScriptInstance::SaveObject().