Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_scenario.cc
Go to the documentation of this file.
1
7string translate(string text);
14string double_to_string(float value, integer decimals);
20string integer_to_string(integer value);
26string money_to_string(integer value);
44string get_month_name(integer month);
48string difftick_to_string(integer);
64string load_language_file(string file);
74class rules {
75public:
84 static void forbid_tool(any_x player_nr, any_x tool_id);
93 static void allow_tool(any_x player_nr, any_x tool_id);
103 static void forbid_way_tool(any_x player_nr, any_x tool_id, any_x wt);
113 static void allow_way_tool(any_x player_nr, any_x tool_id, any_x wt);
126 static void forbid_way_tool_rect(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se, any_x err);
138 static void allow_way_tool_rect(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se);
151 static void forbid_way_tool_cube(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se, any_x err);
163 static void allow_way_tool_cube(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se);
170 static void clear();
174 static void gui_needs_update();
175};
176
180class debug {
181public:
186 static void get_forbidden_text();
187};
string difftick_to_string(integer)
string money_to_string(integer value)
string coord3d_to_string(coord3d c)
string double_to_string(float value, integer decimals)
string translate(string text)
string coord_to_string(coord c)
string integer_to_string(integer value)
string get_month_name(integer month)
string file
static void get_forbidden_text()
static void forbid_way_tool_cube(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se, any_x err)
static void gui_needs_update()
static void forbid_way_tool_rect(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se, any_x err)
static void allow_way_tool(any_x player_nr, any_x tool_id, any_x wt)
static void forbid_tool(any_x player_nr, any_x tool_id)
static void allow_way_tool_rect(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se)
static void allow_way_tool_cube(any_x player_nr, any_x tool_id, any_x wt, any_x pos_nw, any_x pos_se)
static void forbid_way_tool(any_x player_nr, any_x tool_id, any_x wt)
static void allow_tool(any_x player_nr, any_x tool_id)
static void clear()
string load_language_file(string file)