… | |
… | |
313 | inline SV *to_sv (living * v) { return newSVptr (v, stash_cf_living_wrap); } |
313 | inline SV *to_sv (living * v) { return newSVptr (v, stash_cf_living_wrap); } |
314 | |
314 | |
315 | inline SV *to_sv (object & v) { return to_sv (&v); } |
315 | inline SV *to_sv (object & v) { return to_sv (&v); } |
316 | inline SV *to_sv (living & v) { return to_sv (&v); } |
316 | inline SV *to_sv (living & v) { return to_sv (&v); } |
317 | |
317 | |
318 | inline SV *to_sv (New_Face * v) { return to_sv (v->name); } |
318 | inline SV *to_sv (facetile * v) { return to_sv (v->name); } |
319 | inline SV *to_sv (treasurelist * v) { return to_sv (v->name); } |
319 | inline SV *to_sv (treasurelist * v) { return to_sv (v->name); } |
320 | |
320 | |
321 | inline SV *to_sv (UUID v) |
321 | inline SV *to_sv (UUID v) |
322 | { |
322 | { |
323 | char buf[128]; |
323 | char buf[128]; |
… | |
… | |
348 | inline void sv_to (SV *sv, attachable * &v) { v = (attachable *)SvPTR_ornull (sv, "cf::attachable"); } |
348 | inline void sv_to (SV *sv, attachable * &v) { v = (attachable *)SvPTR_ornull (sv, "cf::attachable"); } |
349 | inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); } |
349 | inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); } |
350 | inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); } |
350 | inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); } |
351 | inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); } |
351 | inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); } |
352 | |
352 | |
353 | inline void sv_to (SV *sv, New_Face * &v) { v = &new_faces[FindFace (SvPV_nolen (sv), 0)]; } |
353 | inline void sv_to (SV *sv, facetile * &v) { v = &new_faces[FindFace (SvPV_nolen (sv), 0)]; } |
354 | inline void sv_to (SV *sv, treasurelist * &v) { v = find_treasurelist (SvPV_nolen (sv)); } |
354 | inline void sv_to (SV *sv, treasurelist * &v) { v = find_treasurelist (SvPV_nolen (sv)); } |
355 | |
355 | |
356 | template<class T> |
356 | template<class T> |
357 | inline void sv_to (SV *sv, refptr<T> &v) { T *tmp; sv_to (sv, tmp); v = tmp; } |
357 | inline void sv_to (SV *sv, refptr<T> &v) { T *tmp; sv_to (sv, tmp); v = tmp; } |
358 | |
358 | |
… | |
… | |
1248 | const_iv (FLAG_IS_WATER) |
1248 | const_iv (FLAG_IS_WATER) |
1249 | const_iv (FLAG_CONTENT_ON_GEN) |
1249 | const_iv (FLAG_CONTENT_ON_GEN) |
1250 | const_iv (FLAG_IS_A_TEMPLATE) |
1250 | const_iv (FLAG_IS_A_TEMPLATE) |
1251 | const_iv (FLAG_IS_BUILDABLE) |
1251 | const_iv (FLAG_IS_BUILDABLE) |
1252 | const_iv (FLAG_DESTROY_ON_DEATH) |
1252 | const_iv (FLAG_DESTROY_ON_DEATH) |
1253 | const_iv (FLAG_NO_SAVE) |
1253 | const_iv (FLAG_NO_MAP_SAVE) |
1254 | |
1254 | |
1255 | const_iv (NDI_BLACK) |
1255 | const_iv (NDI_BLACK) |
1256 | const_iv (NDI_WHITE) |
1256 | const_iv (NDI_WHITE) |
1257 | const_iv (NDI_NAVY) |
1257 | const_iv (NDI_NAVY) |
1258 | const_iv (NDI_RED) |
1258 | const_iv (NDI_RED) |
… | |
… | |
1443 | const_iv (ATNR_BLIND) |
1443 | const_iv (ATNR_BLIND) |
1444 | const_iv (ATNR_INTERNAL) |
1444 | const_iv (ATNR_INTERNAL) |
1445 | const_iv (ATNR_LIFE_STEALING) |
1445 | const_iv (ATNR_LIFE_STEALING) |
1446 | const_iv (ATNR_DISEASE) |
1446 | const_iv (ATNR_DISEASE) |
1447 | |
1447 | |
1448 | const_iv (MAP_FLUSH) |
|
|
1449 | const_iv (MAP_PLAYER_UNIQUE) |
|
|
1450 | const_iv (MAP_BLOCK) |
|
|
1451 | const_iv (MAP_STYLE) |
|
|
1452 | const_iv (MAP_OVERLAY) |
|
|
1453 | |
|
|
1454 | const_iv (MAP_IN_MEMORY) |
1448 | const_iv (MAP_IN_MEMORY) |
1455 | const_iv (MAP_SWAPPED) |
1449 | const_iv (MAP_SWAPPED) |
1456 | const_iv (MAP_LOADING) |
1450 | const_iv (MAP_LOADING) |
1457 | const_iv (MAP_SAVING) |
1451 | const_iv (MAP_SAVING) |
1458 | |
1452 | |
… | |
… | |
2221 | char *origin_map,\ |
2215 | char *origin_map,\ |
2222 | char *final_map,\ |
2216 | char *final_map,\ |
2223 | char *exitstyle,\ |
2217 | char *exitstyle,\ |
2224 | char *this_map,\ |
2218 | char *this_map,\ |
2225 | char *exit_on_final_map,\ |
2219 | char *exit_on_final_map,\ |
2226 | int Xsize,\ |
2220 | int xsize,\ |
2227 | int Ysize,\ |
2221 | int ysize,\ |
2228 | int expand2x,\ |
2222 | int expand2x,\ |
2229 | int layoutoptions1,\ |
2223 | int layoutoptions1,\ |
2230 | int layoutoptions2,\ |
2224 | int layoutoptions2,\ |
2231 | int layoutoptions3,\ |
2225 | int layoutoptions3,\ |
2232 | int symmetry,\ |
2226 | int symmetry,\ |
… | |
… | |
2237 | int dungeon_depth,\ |
2231 | int dungeon_depth,\ |
2238 | int decoroptions,\ |
2232 | int decoroptions,\ |
2239 | int orientation,\ |
2233 | int orientation,\ |
2240 | int origin_y,\ |
2234 | int origin_y,\ |
2241 | int origin_x,\ |
2235 | int origin_x,\ |
2242 | int random_seed,\ |
2236 | U32 random_seed,\ |
2243 | val64 total_map_hp,\ |
2237 | val64 total_map_hp,\ |
2244 | int map_layout_style,\ |
2238 | int map_layout_style,\ |
2245 | int treasureoptions,\ |
2239 | int treasureoptions,\ |
2246 | int symmetry_used,\ |
2240 | int symmetry_used,\ |
2247 | region *region,\ |
2241 | region *region,\ |
… | |
… | |
2263 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2257 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2264 | |
2258 | |
2265 | rmp.origin_map = origin_map; |
2259 | rmp.origin_map = origin_map; |
2266 | rmp.final_map = final_map; |
2260 | rmp.final_map = final_map; |
2267 | rmp.this_map = this_map; |
2261 | rmp.this_map = this_map; |
2268 | rmp.Xsize = Xsize; |
2262 | rmp.xsize = xsize; |
2269 | rmp.Ysize = Ysize; |
2263 | rmp.ysize = ysize; |
2270 | rmp.expand2x = expand2x; |
2264 | rmp.expand2x = expand2x; |
2271 | rmp.layoutoptions1 = layoutoptions1; |
2265 | rmp.layoutoptions1 = layoutoptions1; |
2272 | rmp.layoutoptions2 = layoutoptions2; |
2266 | rmp.layoutoptions2 = layoutoptions2; |
2273 | rmp.layoutoptions3 = layoutoptions3; |
2267 | rmp.layoutoptions3 = layoutoptions3; |
2274 | rmp.symmetry = symmetry; |
2268 | rmp.symmetry = symmetry; |