summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.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/tileweb.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/tileweb.h')
-rw-r--r--crawl-ref/source/tileweb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tileweb.h b/crawl-ref/source/tileweb.h
index 2ba044445b..6caf91aa22 100644
--- a/crawl-ref/source/tileweb.h
+++ b/crawl-ref/source/tileweb.h
@@ -131,6 +131,7 @@ public:
void pop_menu();
void close_all_menus();
+ string get_message();
void write_message(PRINTF(1, ));
void finish_message();
void send_message(PRINTF(1, ));
@@ -276,6 +277,7 @@ protected:
player_info m_current_player_info;
void _send_version();
+ void _send_options();
void _send_everything();