summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/options.h
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2013-12-06 06:08:12 +0200
committerPekka Lampila <pekka.lampila@iki.fi>2013-12-11 21:30:27 +0200
commit8c392e7901cca0e6e60b529b4e59208180df99aa (patch)
treea94f4ff529f477f6ecce46c1fcec1d5bf7e3f175 /crawl-ref/source/options.h
parent250cf21fd0d13af38329c5d6fdf7ee592de3c09f (diff)
downloadcrawl-ref-8c392e7901cca0e6e60b529b4e59208180df99aa.tar.gz
crawl-ref-8c392e7901cca0e6e60b529b4e59208180df99aa.zip
Send some rc file options to the WebTiles client
Player's options are always sent on the game start, by the process itself. They are also sent to any joining spectators. Spectators also receive their own config which is generated by running --print-webtiles-options. Also added a simple options module to JavaScript. Since all the options are received on game start the code can assume that the values are always there and have been validated by the server side code.
Diffstat (limited to 'crawl-ref/source/options.h')
-rw-r--r--crawl-ref/source/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/options.h b/crawl-ref/source/options.h
index 53e39dc227..821aecb745 100644
--- a/crawl-ref/source/options.h
+++ b/crawl-ref/source/options.h
@@ -93,6 +93,10 @@ public:
static string resolve_include(string including_file, string included_file,
const vector<string> *rcdirs = NULL) throw (string);
+#ifdef USE_TILE_WEB
+ void write_webtiles_options(const string &name);
+#endif
+
public:
string filename; // The name of the file containing options.
string basefilename; // Base (pathless) file name