| 
    OpenTTD Source 20251104-master-g3befbdd52f
    
   | 
 
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_type.h"#include "../fileio_func.h"#include "../goal_type.h"#include "../league_type.h"#include "../signs_type.h"#include "../story_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, std::string_view 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 45 of file script_instance.cpp.
Referenced by ScriptInstance::ScriptInstance().
      
  | 
  static | 
SaveLoad array that saves/loads exactly one byte.
Definition at line 366 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 363 of file script_instance.cpp.
Referenced by ScriptInstance::Load(), ScriptInstance::LoadEmpty(), ScriptInstance::LoadObjects(), ScriptInstance::Save(), ScriptInstance::SaveEmpty(), and ScriptInstance::SaveObject().