|
OpenTTD Source 15.0-beta1
|
The storage for each script. More...
#include <script_storage.hpp>
Private Attributes | |
| ScriptModeProc * | mode |
| The current build mode we are int. | |
| class ScriptObject * | mode_instance |
| The instance belonging to the current build mode. | |
| ScriptAsyncModeProc * | async_mode |
| The current command async mode we are in. | |
| class ScriptObject * | async_mode_instance |
| The instance belonging to the current command async mode. | |
| CompanyID | root_company |
| The root company, the company that the script really belongs to. | |
| CompanyID | company |
| The current company. | |
| uint | delay |
| The ticks of delay each DoCommand has. | |
| bool | allow_do_command |
| Is the usage of DoCommands restricted? | |
| CommandCost | costs |
| The costs the script is tracking. | |
| Money | last_cost |
| The last cost of the command. | |
| uint | last_error |
| The last error of the command. | |
| bool | last_command_res |
| The last result of the command. | |
| CommandDataBuffer | last_data |
| The last data passed to a command. | |
| Commands | last_cmd |
| The last cmd passed to a command. | |
| CommandDataBuffer | last_cmd_ret |
| The extra data returned by the last command. | |
| std::vector< int > | callback_value |
| The values which need to survive a callback. | |
| RoadType | road_type |
| The current roadtype we build. | |
| RailType | rail_type |
| The current railtype we build. | |
| void * | event_data |
| Pointer to the event data storage. | |
| ScriptLogTypes::LogData | log_data |
| Log data storage. | |
Friends | |
| class | ScriptObject |
The storage for each script.
It keeps track of important information.
Definition at line 37 of file script_storage.hpp.
|
inline |
Definition at line 68 of file script_storage.hpp.
| ScriptStorage::~ScriptStorage | ( | ) |
Definition at line 35 of file script_instance.cpp.
|
friend |
Definition at line 38 of file script_storage.hpp.
|
private |
Is the usage of DoCommands restricted?
Definition at line 48 of file script_storage.hpp.
|
private |
The current command async mode we are in.
Definition at line 42 of file script_storage.hpp.
|
private |
The instance belonging to the current command async mode.
Definition at line 43 of file script_storage.hpp.
|
private |
The values which need to survive a callback.
Definition at line 59 of file script_storage.hpp.
|
private |
The current company.
Definition at line 45 of file script_storage.hpp.
|
private |
The costs the script is tracking.
Definition at line 50 of file script_storage.hpp.
|
private |
The ticks of delay each DoCommand has.
Definition at line 47 of file script_storage.hpp.
|
private |
Pointer to the event data storage.
Definition at line 64 of file script_storage.hpp.
|
private |
The last cmd passed to a command.
Definition at line 56 of file script_storage.hpp.
|
private |
The extra data returned by the last command.
Definition at line 57 of file script_storage.hpp.
|
private |
The last result of the command.
Definition at line 53 of file script_storage.hpp.
|
private |
The last cost of the command.
Definition at line 51 of file script_storage.hpp.
|
private |
The last data passed to a command.
Definition at line 55 of file script_storage.hpp.
|
private |
The last error of the command.
Definition at line 52 of file script_storage.hpp.
|
private |
Log data storage.
Definition at line 65 of file script_storage.hpp.
|
private |
The current build mode we are int.
Definition at line 40 of file script_storage.hpp.
|
private |
The instance belonging to the current build mode.
Definition at line 41 of file script_storage.hpp.
|
private |
The current railtype we build.
Definition at line 62 of file script_storage.hpp.
|
private |
The current roadtype we build.
Definition at line 61 of file script_storage.hpp.
|
private |
The root company, the company that the script really belongs to.
Definition at line 44 of file script_storage.hpp.