ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/cfperl.xs
(Generate patch)

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.386 by root, Sat Jun 26 22:10:18 2010 UTC vs.
Revision 1.387 by root, Wed Jun 30 01:32:57 2010 UTC

2537# worst xs function of my life 2537# worst xs function of my life
2538bool 2538bool
2539_create_random_map (\ 2539_create_random_map (\
2540 maptile *self,\ 2540 maptile *self,\
2541 SV *options,\ 2541 SV *options,\
2542 utf8_string wall_name,\
2543 utf8_string monsterstyle,\
2544 utf8_string treasurestyle,\
2545 utf8_string layoutstyle,\
2546 utf8_string doorstyle,\
2547 utf8_string decorstyle,\
2548 utf8_string origin_map,\
2549 utf8_string final_map,\
2550 utf8_string this_map,\
2551 utf8_string exit_on_final_map,\
2552 int xsize,\
2553 int ysize,\
2554 int expand2x,\
2555 int layoutoptions1,\
2556 int layoutoptions2,\
2557 int layoutoptions3,\
2558 int symmetry,\
2559 int difficulty,\
2560 int difficulty_given,\
2561 float difficulty_increase,\
2562 int dungeon_level,\
2563 int dungeon_depth,\
2564 int decoroptions,\
2565 int orientation,\
2566 int origin_y,\
2567 int origin_x,\
2568 U32 random_seed,\
2569 val64 total_map_hp,\ 2542 val64 total_map_hp,\
2570 int map_layout_style,\
2571 int treasureoptions,\
2572 int symmetry_used,\
2573 region *region\ 2543 region *region\
2574) 2544)
2575 CODE: 2545 CODE:
2576{ 2546{
2577 random_map_params rmp; 2547 random_map_params rmp;
2578 2548
2579 rmp.hv = (HV *)SvREFCNT_inc_NN (SvRV (options)); 2549 rmp.hv = (HV *)SvREFCNT_inc_NN (SvRV (options));
2580 2550
2581 assign (rmp.wall_name , wall_name); 2551 assign (rmp.wall_name , rmp.get_str ("wall_name"));
2582 assign (rmp.monsterstyle , monsterstyle); 2552 assign (rmp.monsterstyle , rmp.get_str ("monsterstyle"));
2583 assign (rmp.treasurestyle , treasurestyle);
2584 assign (rmp.layoutstyle , layoutstyle); 2553 assign (rmp.layoutstyle , rmp.get_str ("layoutstyle"));
2585 assign (rmp.doorstyle , doorstyle); 2554 assign (rmp.doorstyle , rmp.get_str ("doorstyle"));
2586 assign (rmp.decorstyle , decorstyle);
2587 assign (rmp.exit_on_final_map, exit_on_final_map); 2555 assign (rmp.exit_on_final_map, rmp.get_str ("exit_on_final_map"));
2588 2556
2589 rmp.origin_map = origin_map; 2557 rmp.origin_map = rmp.get_str ("origin_map");
2558 rmp.origin_x = rmp.get_iv ("origin_x");
2559 rmp.origin_y = rmp.get_iv ("origin_y");
2590 rmp.final_map = final_map; 2560 rmp.final_map = rmp.get_str ("final_map");
2591 rmp.this_map = this_map; 2561 rmp.this_map = rmp.get_str ("this_map");
2592 rmp.xsize = xsize; 2562 rmp.xsize = rmp.get_iv ("xsize");
2593 rmp.ysize = ysize; 2563 rmp.ysize = rmp.get_iv ("ysize");
2594 rmp.expand2x = expand2x; 2564 rmp.expand2x = rmp.get_iv ("expand2x");
2595 rmp.layoutoptions1 = layoutoptions1; 2565 rmp.layoutoptions1 = rmp.get_iv ("layoutoptions1");
2596 rmp.layoutoptions2 = layoutoptions2; 2566 rmp.layoutoptions2 = rmp.get_iv ("layoutoptions2");
2597 rmp.layoutoptions3 = layoutoptions3; 2567 rmp.layoutoptions3 = rmp.get_iv ("layoutoptions3");
2598 rmp.symmetry = symmetry; 2568 rmp.symmetry = rmp.get_iv ("symmetry");
2599 rmp.difficulty = difficulty; 2569 rmp.difficulty = rmp.get_iv ("difficulty");
2600 rmp.difficulty_given = difficulty_given; 2570 rmp.difficulty_given = rmp.get_iv ("difficulty_given");
2601 rmp.difficulty_increase = difficulty_increase; 2571 rmp.difficulty_increase = rmp.get_nv ("difficulty_increase");
2602 rmp.dungeon_level = dungeon_level; 2572 rmp.dungeon_level = rmp.get_iv ("dungeon_level");
2603 rmp.dungeon_depth = dungeon_depth; 2573 rmp.dungeon_depth = rmp.get_iv ("dungeon_depth");
2604 rmp.decoroptions = decoroptions;
2605 rmp.orientation = orientation; 2574 rmp.orientation = rmp.get_iv ("orientation");
2606 rmp.origin_y = origin_y;
2607 rmp.origin_x = origin_x;
2608 rmp.random_seed = random_seed; 2575 rmp.random_seed = rmp.get_uv ("random_seed");
2609 rmp.total_map_hp = (uint64_t) total_map_hp; 2576 rmp.total_map_hp = (uint64_t)total_map_hp;
2610 rmp.map_layout_style = map_layout_style; 2577 rmp.map_layout_style = rmp.get_iv ("map_layout_style");
2611 rmp.treasureoptions = treasureoptions;
2612 rmp.symmetry_used = symmetry_used; 2578 rmp.symmetry_used = rmp.get_iv ("symmetry_used");
2613 rmp.region = region; 2579 rmp.region = region;
2614 2580
2615 RETVAL = self->generate_random_map (&rmp); 2581 RETVAL = self->generate_random_map (&rmp);
2616} 2582}
2617 OUTPUT: 2583 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines