12 #ifndef SCRIPT_STORAGE_HPP 13 #define SCRIPT_STORAGE_HPP 15 #include "../signs_func.h" 16 #include "../vehicle_func.h" 17 #include "../road_type.h" 19 #include "../goal_type.h" 20 #include "../story_type.h" 22 #include "table/strings.h" 34 friend class ScriptObject;
71 allow_do_command (true),
74 last_error (STR_NULL),
75 last_command_res (true),
80 new_story_page_id (0),
81 new_story_page_element_id(0),
void * event_data
Pointer to the event data storage.
ScriptModeProc * mode
The current build mode we are int.
RailType
Enumeration for all possible railtypes.
VehicleID new_vehicle_id
The ID of the new Vehicle.
uint16 GoalID
ID of a goal.
flag for invalid roadtype
bool() ScriptModeProc()
The callback function for Mode-classes.
GroupID new_group_id
The ID of the new Group.
Common return value for all commands.
RoadType
The different roadtypes we support.
GoalID new_goal_id
The ID of the new Goal.
CompanyID root_company
The root company, the company that the script really belongs to.
bool allow_do_command
Is the usage of DoCommands restricted?
bool last_command_res
The last result of the command.
uint32 VehicleID
The type all our vehicle IDs have.
RailType rail_type
The current railtype we build.
CommandCost costs
The costs the script is tracking.
CompanyID company
The current company.
uint delay
The ticks of delay each DoCommand has.
std::vector< int > callback_value
The values which need to survive a callback.
uint16 GroupID
Type for all group identifiers.
StoryPageID new_story_page_id
The ID of the new StoryPage.
class ScriptObject * mode_instance
The instance belonging to the current build mode.
void * log_data
Pointer to the log data storage.
RoadType road_type
The current roadtype we build.
StoryPageID new_story_page_element_id
The ID of the new StoryPageElement.
uint last_error
The last error of the command.
Money last_cost
The last cost of the command.
uint16 SignID
The type of the IDs of signs.
SignID new_sign_id
The ID of the new Sign.
Flag for invalid railtype.
Owner
Enum for all companies/owners.
The storage for each script.
uint16 StoryPageID
ID of a story page.