Go to the documentation of this file.
10 #ifndef SCRIPT_STORAGE_HPP
11 #define SCRIPT_STORAGE_HPP
13 #include "../signs_func.h"
14 #include "../vehicle_func.h"
15 #include "../road_type.h"
17 #include "../goal_type.h"
18 #include "../story_type.h"
20 #include "table/strings.h"
32 friend class ScriptObject;
void * log_data
Pointer to the log data storage.
uint32 TileIndex
The index/ID of a Tile.
The storage for each script.
uint delay
The ticks of delay each DoCommand has.
TileIndex last_tile
The last tile passed to a command.
@ INVALID_ROADTYPE
flag for invalid roadtype
CompanyID company
The current company.
uint32 last_p2
The last p2 passed to a command.
Owner
Enum for all companies/owners.
RailType
Enumeration for all possible railtypes.
Common return value for all commands.
bool() ScriptModeProc()
The callback function for Mode-classes.
uint16 StoryPageID
ID of a story page.
uint last_error
The last error of the command.
@ INVALID_OWNER
An invalid owner.
void * event_data
Pointer to the event data storage.
class ScriptObject * mode_instance
The instance belonging to the current build mode.
uint32 last_p1
The last p1 passed to a command.
Money last_cost
The last cost of the command.
RoadType
The different roadtypes we support.
VehicleID new_vehicle_id
The ID of the new Vehicle.
std::vector< int > callback_value
The values which need to survive a callback.
bool allow_do_command
Is the usage of DoCommands restricted?
uint16 GroupID
Type for all group identifiers.
StoryPageID new_story_page_element_id
The ID of the new StoryPageElement.
CommandCost costs
The costs the script is tracking.
SignID new_sign_id
The ID of the new Sign.
GroupID new_group_id
The ID of the new Group.
CompanyID root_company
The root company, the company that the script really belongs to.
ScriptModeProc * mode
The current build mode we are int.
StoryPageID new_story_page_id
The ID of the new StoryPage.
uint32 VehicleID
The type all our vehicle IDs have.
GoalID new_goal_id
The ID of the new Goal.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
RoadType road_type
The current roadtype we build.
@ CMD_END
Must ALWAYS be on the end of this list!! (period)
uint32 last_cmd
The last cmd passed to a command.
uint16 GoalID
ID of a goal.
RailType rail_type
The current railtype we build.
bool last_command_res
The last result of the command.
uint16 SignID
The type of the IDs of signs.
@ INVALID_RAILTYPE
Flag for invalid railtype.