Simutrans-Squirrel-API
|
Functions | |
string | do_work (player_x pl, coord3d start, coord3d end, int keys) |
void | mark_tiles (player_x pl, coord3d start, coord3d end, int keys) |
string | work (player_x pl, coord3d pos, int keys) |
The following methods are vital for the functioning of scripted tools. They will be called from simutrans to interact with the script. You should consider implementing them.
Does the work (for tools of two-click type).
pl | player instance to use this tool. |
start | first tile clicked by user. |
end | second tile clicked by user. |
keys | state of ctrl/shift keys. |
Mark tiles for working (for tools of two-click type). Call mark_tile from here.
pl | player instance to use this tool. |
start | first tile clicked by user. |
end | second tile clicked by user. |
keys | state of ctrl/shift keys. |