--- deliantra/maps/perl/cfplus.ext 2006/10/01 11:23:30 1.11 +++ deliantra/maps/perl/cfplus.ext 2006/10/01 18:18:34 1.12 @@ -156,12 +156,38 @@ }, ; +=item ... = extcmd editor_support + +Returns the value required by clients that have an editor to download and +upload maps from/to the server. + + cvs_root => the (http) url where the cvs root for downloading is located + upload => the (http) url where clients can upload maps + server => the hostname:port of the test server the maps can be tested on + +If those values are not supplied or empty strings, the server does not +support downloading, uploading, testing, respectively. + +The upload script expects the following values in a multipart form upload: + + client: a descriptive string describing the editor and version used to upload + path: absolute server-side map path beginning with / + map: the map file itself + mapdir: the cvs root url originally used to download the map + revision: cvs-revision originally used to download the map + comment: a comment supplied by the user that documents the changes + cf_login: crossfire server login + cf_password: crossfire server password, optionally used for authentication purposes + +=cut + cf::register_extcmd editor_support => sub { my ($pl, $msg) = @_; ( cvs_root => $cf::CFG{editor_cvs_root}, upload => $cf::CFG{editor_upload}, + server => $cf::CFG{editor_server}, ) };