Re: Network safety and depots
Reply #1 –
There is already something like that in the code: void convoi_t::call_convoi_tool( const char function, const char *extra ) const
This should be called from your replacement gui etc.
To perform the actions you have to modify
bool wkz_change_convoi_t::init( karte_t *welt, spieler_t *sp )
And a sidenote:
The different commands are distuingished by one char. May I suggest that you use 'X' in all such tools to identify the Experimental's features? The 'X' can be followed by any other characters to identify sub-features etc. Then there is a chance to implement reactions in trunk to handle commands from "experimental" clients. Also then the 'X' can be reserved and will not be used in later versions of trunk.