|
OpenTTD
|
Implementation of ScriptInstance. More...
#include "../stdafx.h"#include "../debug.h"#include "../saveload/saveload.h"#include "../script/squirrel_class.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 "../safeguards.h"Go to the source code of this file.
Enumerations | |
| enum | SQSaveLoadType { SQSL_INT = 0x00, SQSL_STRING = 0x01, SQSL_ARRAY = 0x02, SQSL_TABLE = 0x03, SQSL_BOOL = 0x04, SQSL_NULL = 0x05, SQSL_ARRAY_TABLE_END = 0xFF } |
| The type of the data that follows in the savegame. More... | |
Functions | |
| static void | PrintFunc (bool error_msg, const SQChar *message) |
| Callback called by squirrel when a script uses "print" and for error messages. | |
Variables | |
| static byte | _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.
| enum SQSaveLoadType |
The type of the data that follows in the savegame.
Definition at line 325 of 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 338 of file script_instance.cpp.
1.8.1.2