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.237 by root, Mon Jul 23 23:46:03 2007 UTC vs.
Revision 1.238 by root, Tue Jul 24 04:55:34 2007 UTC

1521 const_iv (SYMMETRY_Y) const_iv (SYMMETRY_XY) 1521 const_iv (SYMMETRY_Y) const_iv (SYMMETRY_XY)
1522 1522
1523 const_iv (GT_ENVIRONMENT) const_iv (GT_INVISIBLE) const_iv (GT_STARTEQUIP) 1523 const_iv (GT_ENVIRONMENT) const_iv (GT_INVISIBLE) const_iv (GT_STARTEQUIP)
1524 const_iv (GT_APPLY) const_iv (GT_ONLY_GOOD) const_iv (GT_UPDATE_INV) 1524 const_iv (GT_APPLY) const_iv (GT_ONLY_GOOD) const_iv (GT_UPDATE_INV)
1525 const_iv (GT_MINIMAL) 1525 const_iv (GT_MINIMAL)
1526
1527 const_iv (FT_FACE) const_iv (FT_MUSIC) const_iv (FT_SOUND)
1528 const_iv (FT_RSRC) const_iv (FT_NUM)
1526 }; 1529 };
1527 1530
1528 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 1531 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
1529 newCONSTSUB (stash_cf, (char *)civ->name, newSViv (civ->iv)); 1532 newCONSTSUB (stash_cf, (char *)civ->name, newSViv (civ->iv));
1530 1533
2622 2625
2623 THIS->send_packet (buf, len); 2626 THIS->send_packet (buf, len);
2624} 2627}
2625 2628
2626faceidx 2629faceidx
2627client::find_face (utf8_string name, faceidx defidx = 0) 2630client::need_face (utf8_string name, int pri = 0)
2628 CODE: 2631 CODE:
2629 RETVAL = face_find (name, defidx); 2632 RETVAL = face_find (name, 0);
2633 if (RETVAL)
2634 {
2630 THIS->send_face (RETVAL); 2635 THIS->send_face (RETVAL, pri);
2631 THIS->flush_fx (); 2636 THIS->flush_fx ();
2637 }
2638 OUTPUT:
2639 RETVAL
2640
2641int
2642client::fx_want (int idx, int value = -1)
2643 CODE:
2644 if (0 < idx && idx < FT_NUM)
2645 {
2646 RETVAL = THIS->fx_want [idx];
2647 if (items > 2)
2648 THIS->fx_want [idx] = value;
2649 }
2650 else
2651 RETVAL = 0;
2632 OUTPUT: 2652 OUTPUT:
2633 RETVAL 2653 RETVAL
2634 2654
2635MODULE = cf PACKAGE = cf::face PREFIX = face_ 2655MODULE = cf PACKAGE = cf::face PREFIX = face_
2636 2656

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines