--- deliantra/server/random_maps/random_map.h 2010/04/13 02:39:53 1.25 +++ deliantra/server/random_maps/random_map.h 2010/06/26 22:10:18 1.26 @@ -29,10 +29,7 @@ struct random_map_params : zero_initialised { - char wallstyle[512]; - char miningstyle[512]; char wall_name[512]; - char floorstyle[512]; char monsterstyle[512]; char treasurestyle[512]; char layoutstyle[512]; @@ -40,11 +37,9 @@ char decorstyle[512]; shstr origin_map; shstr final_map; - char exitstyle[512]; shstr this_map; char exit_on_final_map[512]; - char *custom; - + int xsize, ysize; int expand2x; int layoutoptions1; @@ -70,9 +65,20 @@ struct region *region; + HV *hv; + + // fetch something from the options hash + const_utf8_string get_str (const_utf8_string option, const_utf8_string fallback = "") const; + IV get_iv (const_utf8_string option, IV fallback = 0) const; + + void set (const_utf8_string option, const_utf8_string value); + void set (const_utf8_string option, IV value); + // "private", adjusted sizes int Xsize; int Ysize; + + ~random_map_params (); }; enum {