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.181 by root, Tue Apr 3 00:21:38 2007 UTC vs.
Revision 1.188 by root, Mon Apr 16 11:09:32 2007 UTC

49 49
50extern sint64 *levels; // the experience table 50extern sint64 *levels; // the experience table
51 51
52typedef object object_ornull; 52typedef object object_ornull;
53typedef maptile maptile_ornull; 53typedef maptile maptile_ornull;
54
55typedef char *octet_string;
56typedef char *utf8_string;
57typedef const char *const_octet_string;
58typedef const char *const_utf8_string;
54 59
55#if IVSIZE >= 8 60#if IVSIZE >= 8
56 typedef IV val64; 61 typedef IV val64;
57# define newSVval64 newSViv 62# define newSVval64 newSViv
58# define SvVAL64 SvIV 63# define SvVAL64 SvIV
386inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); } 391inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); }
387inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); } 392inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); }
388inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); } 393inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); }
389 394
390//inline void sv_to (SV *sv, faceinfo * &v) { v = &faces [face_find (SvPV_nolen (sv), 0)]; } 395//inline void sv_to (SV *sv, faceinfo * &v) { v = &faces [face_find (SvPV_nolen (sv), 0)]; }
391inline void sv_to (SV *sv, treasurelist * &v) { v = find_treasurelist (SvPV_nolen (sv)); } 396inline void sv_to (SV *sv, treasurelist * &v) { v = treasurelist::find (SvPV_nolen (sv)); }
392 397
393template<class T> 398template<class T>
394inline void sv_to (SV *sv, refptr<T> &v) { T *tmp; sv_to (sv, tmp); v = tmp; } 399inline void sv_to (SV *sv, refptr<T> &v) { T *tmp; sv_to (sv, tmp); v = tmp; }
395 400
396template<int N> 401template<int N>
946struct EventAPI *watcher_base::GEventAPI; 951struct EventAPI *watcher_base::GEventAPI;
947struct CoroAPI *coroapi::GCoroAPI; 952struct CoroAPI *coroapi::GCoroAPI;
948 953
949int coroapi::cede_counter; 954int coroapi::cede_counter;
950 955
956void
957coroapi::wait_for_tick ()
958{
959 CALL_BEGIN (0);
960 CALL_CALL ("cf::wait_for_tick", G_DISCARD);
961 CALL_END;
962}
963
964void
965coroapi::wait_for_tick_begin ()
966{
967 CALL_BEGIN (0);
968 CALL_CALL ("cf::wait_for_tick_begin", G_DISCARD);
969 CALL_END;
970}
971
972static void
951static void iw_dispatch (pe_event *ev) 973iw_dispatch (pe_event *ev)
952{ 974{
953 iw *w = (iw *)ev->ext_data; 975 iw *w = (iw *)ev->ext_data;
954 w->call (*w); 976 w->call (*w);
955} 977}
956 978
1628 CODE: 1650 CODE:
1629 runtime = SvNVx (sv_runtime); 1651 runtime = SvNVx (sv_runtime);
1630 server_tick (); 1652 server_tick ();
1631 1653
1632void 1654void
1633LOG (int level, char *msg) 1655LOG (int level, utf8_string msg)
1634 PROTOTYPE: $$ 1656 PROTOTYPE: $$
1635 C_ARGS: (LogLevel)level, "%s", msg 1657 C_ARGS: (LogLevel)level, "%s", msg
1636 1658
1637char *path_combine (char *base, char *path) 1659octet_string path_combine (octet_string base, octet_string path)
1638 PROTOTYPE: $$ 1660 PROTOTYPE: $$
1639 1661
1640char *path_combine_and_normalize (char *base, char *path) 1662octet_string path_combine_and_normalize (octet_string base, octet_string path)
1641 PROTOTYPE: $$ 1663 PROTOTYPE: $$
1642 1664
1643const char * 1665const_octet_string
1644get_maps_directory (char *path) 1666get_maps_directory (octet_string path)
1645 PROTOTYPE: $ 1667 PROTOTYPE: $
1646 ALIAS: maps_directory = 0 1668 ALIAS: maps_directory = 0
1647 CODE: 1669 CODE:
1648 RETVAL = create_pathname (path); 1670 RETVAL = create_pathname (path);
1649 OUTPUT: RETVAL 1671 OUTPUT: RETVAL
1651void 1673void
1652sub_generation_inc () 1674sub_generation_inc ()
1653 CODE: 1675 CODE:
1654 PL_sub_generation++; 1676 PL_sub_generation++;
1655 1677
1656const char * 1678const_octet_string
1657mapdir () 1679mapdir ()
1658 PROTOTYPE: 1680 PROTOTYPE:
1659 ALIAS: 1681 ALIAS:
1660 mapdir = 0 1682 mapdir = 0
1661 uniquedir = 1 1683 uniquedir = 1
1677 } 1699 }
1678 OUTPUT: RETVAL 1700 OUTPUT: RETVAL
1679 1701
1680void abort () 1702void abort ()
1681 1703
1682void fork_abort (char *cause = "cf::fork_abort") 1704void fork_abort (octet_string cause = "cf::fork_abort")
1683 1705
1684void cleanup (const char *cause, bool make_core = false) 1706void cleanup (octet_string cause, bool make_core = false)
1685 1707
1686void emergency_save () 1708void emergency_save ()
1687 1709
1688void _exit (int status = EXIT_SUCCESS) 1710void _exit (int status = EXIT_SUCCESS)
1689 1711
1699 1721
1700int munlockall () 1722int munlockall ()
1701 1723
1702#endif 1724#endif
1703 1725
1704int find_animation (char *text) 1726int find_animation (utf8_string text)
1705 PROTOTYPE: $ 1727 PROTOTYPE: $
1706 1728
1707int random_roll (int min, int max, object *op, int goodbad); 1729int random_roll (int min, int max, object *op, int goodbad);
1708 1730
1709const char *cost_string_from_value(uint64 cost, int approx = 0) 1731const_utf8_string cost_string_from_value(uint64 cost, int approx = 0)
1710 1732
1711int 1733int
1712exp_to_level (val64 exp) 1734exp_to_level (val64 exp)
1713 CODE: 1735 CODE:
1714{ 1736{
1746 else 1768 else
1747 XSRETURN_UNDEF; 1769 XSRETURN_UNDEF;
1748 OUTPUT: RETVAL 1770 OUTPUT: RETVAL
1749 1771
1750bool 1772bool
1751load_resource_file (const char *filename) 1773load_resource_file (octet_string filename)
1774
1775bool
1776load_archetype_file (octet_string filename)
1777
1778bool
1779load_treasure_file (octet_string filename)
1752 1780
1753MODULE = cf PACKAGE = cf::attachable 1781MODULE = cf PACKAGE = cf::attachable
1754 1782
1755int 1783int
1756valid (SV *obj) 1784valid (SV *obj)
1855num_animations (object *op) 1883num_animations (object *op)
1856 CODE: 1884 CODE:
1857 RETVAL = NUM_ANIMATIONS (op); 1885 RETVAL = NUM_ANIMATIONS (op);
1858 OUTPUT: RETVAL 1886 OUTPUT: RETVAL
1859 1887
1860object *find_best_object_match (object *op, const char *match) 1888object *find_best_object_match (object *op, utf8_string match)
1861 1889
1862object *find_marked_object (object *op) 1890object *find_marked_object (object *op)
1863 1891
1864int need_identify (object *obj); 1892int need_identify (object *obj);
1865 1893
1885 CODE: 1913 CODE:
1886 player_apply_below (op); 1914 player_apply_below (op);
1887 1915
1888int cast_heal (object *op, object *caster, object *spell, int dir = 0) 1916int cast_heal (object *op, object *caster, object *spell, int dir = 0)
1889 1917
1890object *cf_object_present_archname_inside (object *op, char *whatstr) 1918object *cf_object_present_archname_inside (object *op, utf8_string whatstr)
1891 1919
1892int cf_object_transfer (object *op, int x, int y, int r = 0, object_ornull *orig = 0) 1920int cf_object_transfer (object *op, int x, int y, int r = 0, object_ornull *orig = 0)
1893 1921
1894int cf_object_change_map (object *op, int x, int y, maptile *map) 1922int cf_object_change_map (object *op, int x, int y, maptile *map)
1895 1923
1915 RETVAL = pay_for_amount (amount, op); 1943 RETVAL = pay_for_amount (amount, op);
1916 OUTPUT: RETVAL 1944 OUTPUT: RETVAL
1917 1945
1918void pay_player (object *op, uint64 amount) 1946void pay_player (object *op, uint64 amount)
1919 1947
1920val64 pay_player_arch (object *op, const char *arch, uint64 amount) 1948val64 pay_player_arch (object *op, utf8_string arch, uint64 amount)
1921 1949
1922int cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg = 0) 1950int cast_spell (object *op, object *caster, int dir, object *spell_ob, utf8_string stringarg = 0)
1923 1951
1924void learn_spell (object *op, object *sp, int special_prayer = 0) 1952void learn_spell (object *op, object *sp, int special_prayer = 0)
1925 CODE: 1953 CODE:
1926 do_learn_spell (op, sp, special_prayer); 1954 do_learn_spell (op, sp, special_prayer);
1927 1955
1928void forget_spell (object *op, object *sp) 1956void forget_spell (object *op, object *sp)
1929 CODE: 1957 CODE:
1930 do_forget_spell (op, query_name (sp)); 1958 do_forget_spell (op, query_name (sp));
1931 1959
1932object *check_for_spell (object *op, char *spellname) 1960object *check_for_spell (object *op, utf8_string spellname)
1933 CODE: 1961 CODE:
1934 RETVAL = check_spell_known (op, spellname); 1962 RETVAL = check_spell_known (op, spellname);
1935 OUTPUT: RETVAL 1963 OUTPUT: RETVAL
1936 1964
1937int query_money (object *op) 1965int query_money (object *op)
1950 1978
1951int cf_object_teleport (object *op, maptile *map, int x, int y) 1979int cf_object_teleport (object *op, maptile *map, int x, int y)
1952 1980
1953void update_object (object *op, int action) 1981void update_object (object *op, int action)
1954 1982
1955object *cf_create_object_by_name (const char *name) 1983object *cf_create_object_by_name (utf8_string name)
1956 1984
1957void change_exp (object *op, uint64 exp, const char *skill_name = 0, int flag = 0) 1985void change_exp (object *op, uint64 exp, utf8_string skill_name = 0, int flag = 0)
1958 1986
1959void player_lvl_adj (object *who, object *skill = 0) 1987void player_lvl_adj (object *who, object *skill = 0)
1960 1988
1961int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL) 1989int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL)
1962 1990
1976object *cf_insert_ob_in_ob (object *ob, object *where) 2004object *cf_insert_ob_in_ob (object *ob, object *where)
1977 2005
1978# no clean way to get an object from an archetype - stupid idiotic 2006# no clean way to get an object from an archetype - stupid idiotic
1979# dumb kludgy misdesigned plug-in api slowly gets on my nerves. 2007# dumb kludgy misdesigned plug-in api slowly gets on my nerves.
1980 2008
1981object *new (const char *archetype = 0) 2009object *new (utf8_string archetype = 0)
1982 PROTOTYPE: ;$ 2010 PROTOTYPE: ;$
1983 CODE: 2011 CODE:
1984 RETVAL = archetype ? get_archetype (archetype) : cf_create_object (); 2012 RETVAL = archetype ? get_archetype (archetype) : cf_create_object ();
1985 OUTPUT: 2013 OUTPUT:
1986 RETVAL 2014 RETVAL
1991{ 2019{
1992 int unused_type; 2020 int unused_type;
1993 RETVAL = (object *)object_insert (&unused_type, ob, 0, where, orig, flag, x, y); 2021 RETVAL = (object *)object_insert (&unused_type, ob, 0, where, orig, flag, x, y);
1994} 2022}
1995 2023
1996# syntatic sugar for easier use in event callbacks.
1997const char *options (object *op)
1998 CODE:
1999 RETVAL = op->name;
2000 OUTPUT:
2001 RETVAL
2002
2003player *contr (object *op) 2024player *contr (object *op)
2004 CODE: 2025 CODE:
2005 RETVAL = op->contr; 2026 RETVAL = op->contr;
2006 OUTPUT: RETVAL 2027 OUTPUT: RETVAL
2007 2028
2008const char *get_ob_key_value (object *op, const char *key) 2029const_utf8_string get_ob_key_value (object *op, utf8_string key)
2009 2030
2010bool set_ob_key_value (object *op, const char *key, const char *value = 0, int add_key = 1) 2031bool set_ob_key_value (object *op, utf8_string key, utf8_string value = 0, int add_key = 1)
2011 2032
2012object *get_nearest_player (object *ob) 2033object *get_nearest_player (object *ob)
2013 ALIAS: nearest_player = 0 2034 ALIAS: nearest_player = 0
2014 PREINIT: 2035 PREINIT:
2015 extern object *get_nearest_player (object *); 2036 extern object *get_nearest_player (object *);
2031bool on_same_map_as (object *ob, object *other) 2052bool on_same_map_as (object *ob, object *other)
2032 CODE: 2053 CODE:
2033 RETVAL = on_same_map (ob, other); 2054 RETVAL = on_same_map (ob, other);
2034 OUTPUT: RETVAL 2055 OUTPUT: RETVAL
2035 2056
2036const char * 2057const_utf8_string
2037base_name (object *op, int plural = op->nrof > 1) 2058base_name (object *op, int plural = op->nrof > 1)
2038 CODE: 2059 CODE:
2039 RETVAL = query_base_name (op, plural); 2060 RETVAL = query_base_name (op, plural);
2040 OUTPUT: RETVAL 2061 OUTPUT: RETVAL
2041 2062
2048 RETVAL = op->contr; 2069 RETVAL = op->contr;
2049 OUTPUT: RETVAL 2070 OUTPUT: RETVAL
2050 2071
2051void check_score (object *op) 2072void check_score (object *op)
2052 2073
2053void message (object *op, char *txt, int flags = NDI_ORANGE | NDI_UNIQUE) 2074void message (object *op, utf8_string txt, int flags = NDI_ORANGE | NDI_UNIQUE)
2054 CODE: 2075 CODE:
2055 new_draw_info (flags, 0, op, txt); 2076 new_draw_info (flags, 0, op, txt);
2056 2077
2057object *cf_player_send_inventory (object *op) 2078object *cf_player_send_inventory (object *op)
2058 2079
2059char *cf_player_get_ip (object *op) 2080octet_string cf_player_get_ip (object *op)
2060 ALIAS: ip = 0 2081 ALIAS: ip = 0
2061 2082
2062object *cf_player_get_marked_item (object *op) 2083object *cf_player_get_marked_item (object *op)
2063 ALIAS: marked_item = 0 2084 ALIAS: marked_item = 0
2064 2085
2074void esrv_update_item (object *op, int what, object *item) 2095void esrv_update_item (object *op, int what, object *item)
2075 C_ARGS: what, op, item 2096 C_ARGS: what, op, item
2076 2097
2077void clear_los (object *op) 2098void clear_los (object *op)
2078 2099
2079int command_summon (object *op, char *params) 2100int command_summon (object *op, utf8_string params)
2080 2101
2081int command_arrest (object *op, char *params) 2102int command_arrest (object *op, utf8_string params)
2082 2103
2083 2104
2084MODULE = cf PACKAGE = cf::player PREFIX = cf_player_ 2105MODULE = cf PACKAGE = cf::player PREFIX = cf_player_
2085 2106
2086INCLUDE: $PERL $srcdir/genacc player ../include/player.h | 2107INCLUDE: $PERL $srcdir/genacc player ../include/player.h |
2351 2372
2352# worst xs function of my life 2373# worst xs function of my life
2353bool 2374bool
2354_create_random_map (\ 2375_create_random_map (\
2355 maptile *self,\ 2376 maptile *self,\
2356 char *wallstyle,\ 2377 utf8_string wallstyle,\
2357 char *wall_name,\ 2378 utf8_string wall_name,\
2358 char *floorstyle,\ 2379 utf8_string floorstyle,\
2359 char *monsterstyle,\ 2380 utf8_string monsterstyle,\
2360 char *treasurestyle,\ 2381 utf8_string treasurestyle,\
2361 char *layoutstyle,\ 2382 utf8_string layoutstyle,\
2362 char *doorstyle,\ 2383 utf8_string doorstyle,\
2363 char *decorstyle,\ 2384 utf8_string decorstyle,\
2364 char *origin_map,\ 2385 utf8_string origin_map,\
2365 char *final_map,\ 2386 utf8_string final_map,\
2366 char *exitstyle,\ 2387 utf8_string exitstyle,\
2367 char *this_map,\ 2388 utf8_string this_map,\
2368 char *exit_on_final_map,\ 2389 utf8_string exit_on_final_map,\
2369 int xsize,\ 2390 int xsize,\
2370 int ysize,\ 2391 int ysize,\
2371 int expand2x,\ 2392 int expand2x,\
2372 int layoutoptions1,\ 2393 int layoutoptions1,\
2373 int layoutoptions2,\ 2394 int layoutoptions2,\
2386 val64 total_map_hp,\ 2407 val64 total_map_hp,\
2387 int map_layout_style,\ 2408 int map_layout_style,\
2388 int treasureoptions,\ 2409 int treasureoptions,\
2389 int symmetry_used,\ 2410 int symmetry_used,\
2390 region *region,\ 2411 region *region,\
2391 char *custom\ 2412 utf8_string custom\
2392) 2413)
2393 CODE: 2414 CODE:
2394{ 2415{
2395 random_map_params rmp; 2416 random_map_params rmp;
2396 2417
2437 OUTPUT: 2458 OUTPUT:
2438 RETVAL 2459 RETVAL
2439 2460
2440MODULE = cf PACKAGE = cf::arch 2461MODULE = cf PACKAGE = cf::arch
2441 2462
2442archetype *find (const char *name) 2463archetype *find (utf8_string name)
2443 CODE: 2464 CODE:
2444 RETVAL = archetype::find (name); 2465 RETVAL = archetype::find (name);
2445 OUTPUT: 2466 OUTPUT:
2446 RETVAL 2467 RETVAL
2447 2468
2469list () 2490list ()
2470 PPCODE: 2491 PPCODE:
2471 for_all_regions (rgn) 2492 for_all_regions (rgn)
2472 XPUSHs (sv_2mortal (to_sv (rgn))); 2493 XPUSHs (sv_2mortal (to_sv (rgn)));
2473 2494
2474region *find (char *name) 2495region *find (utf8_string name)
2475 PROTOTYPE: $ 2496 PROTOTYPE: $
2476 CODE: 2497 CODE:
2477 RETVAL = region::find (name); 2498 RETVAL = region::find (name);
2478 OUTPUT: RETVAL 2499 OUTPUT: RETVAL
2479 2500
2480region *find_fuzzy (char *name) 2501region *find_fuzzy (utf8_string name)
2481 PROTOTYPE: $ 2502 PROTOTYPE: $
2482 CODE: 2503 CODE:
2483 RETVAL = region::find_fuzzy (name); 2504 RETVAL = region::find_fuzzy (name);
2505 OUTPUT: RETVAL
2506
2507int specificity (region *rgn)
2508 CODE:
2509 RETVAL = 0;
2510 while (rgn = rgn->parent)
2511 RETVAL++;
2484 OUTPUT: RETVAL 2512 OUTPUT: RETVAL
2485 2513
2486INCLUDE: $PERL $srcdir/genacc region ../include/map.h | 2514INCLUDE: $PERL $srcdir/genacc region ../include/map.h |
2487 2515
2488MODULE = cf PACKAGE = cf::living 2516MODULE = cf PACKAGE = cf::living
2524 THIS->send_packet (buf, len); 2552 THIS->send_packet (buf, len);
2525} 2553}
2526 2554
2527MODULE = cf PACKAGE = cf::face PREFIX = face_ 2555MODULE = cf PACKAGE = cf::face PREFIX = face_
2528 2556
2529INCLUDE: $PERL $srcdir/genacc faceset ../include/face.h | 2557#INCLUDE: $PERL $srcdir/genacc faceset ../include/face.h |
2530 2558
2531faceidx face_find (const char *name, faceidx defidx = 0) 2559faceidx face_find (utf8_string name, faceidx defidx = 0)
2532 2560
2533faceidx alloc (const char *name) 2561faceidx alloc (utf8_string name)
2534 CODE: 2562 CODE:
2535{ 2563{
2536 do 2564 do
2537 { 2565 {
2538 RETVAL = faces.size (); 2566 RETVAL = faces.size ();
2553 faceinfo *f = face_info (idx); 2581 faceinfo *f = face_info (idx);
2554 assert (f); 2582 assert (f);
2555 f->visibility = visibility; 2583 f->visibility = visibility;
2556 f->magicmap = magicmap; 2584 f->magicmap = magicmap;
2557 2585
2558void set_smooth (faceidx idx, faceidx smooth) 2586void set_smooth (faceidx idx, faceidx smooth, int smoothlevel)
2559 CODE: 2587 CODE:
2560 faceinfo *f = face_info (idx); 2588 faceinfo *f = face_info (idx); assert (f);
2561 assert (f);
2562 f->smooth = smooth; 2589 f->smooth = smooth;
2590 f->smoothlevel = smoothlevel;
2563 2591
2564void set_data (faceidx idx, int faceset, SV *data, SV *chksum) 2592void set_data (faceidx idx, int faceset, SV *data, SV *chksum)
2565 CODE: 2593 CODE:
2594{
2566 facedata *d = face_data (idx, faceset); 2595 facedata *d = face_data (idx, faceset);
2567 assert (d); 2596 assert (d);
2568 sv_to (data, d->data); 2597 sv_to (data, d->data);
2569 STRLEN clen; 2598 STRLEN clen;
2570 char *cdata = SvPVbyte (chksum, clen); 2599 char *cdata = SvPVbyte (chksum, clen);
2600 clen = min (CHKSUM_SIZE, clen);
2601
2602 if (memcmp (d->chksum, cdata, clen))
2603 {
2571 memcpy (d->chksum, cdata, min (CHKSUM_SIZE, clen)); 2604 memcpy (d->chksum, cdata, clen);
2605
2606 // invalidate existing client face info
2607 for_all_clients (ns)
2608 if (ns->faceset == faceset)
2609 {
2610 ns->faces_sent [idx] = false;
2611 ns->force_newmap = true;
2612 }
2613 }
2614}
2572 2615
2573void invalidate (faceidx idx) 2616void invalidate (faceidx idx)
2574 CODE: 2617 CODE:
2575 for_all_clients (ns) 2618 for_all_clients (ns)
2619 {
2576 ns->faces_sent [idx] = false; 2620 ns->faces_sent [idx] = false;
2621 ns->force_newmap = true;
2622 }
2577 2623
2578void invalidate_all () 2624void invalidate_all ()
2579 CODE: 2625 CODE:
2580 for_all_clients (ns) 2626 for_all_clients (ns)
2627 {
2581 ns->faces_sent.reset (); 2628 ns->faces_sent.reset ();
2629 ns->force_newmap = true;
2630 }
2582 2631
2632MODULE = cf PACKAGE = cf::anim PREFIX = anim_
2633
2634#INCLUDE: $PERL $srcdir/genacc faceset ../include/anim.h |
2635
2636animidx anim_find (utf8_string name)
2637 CODE:
2638 RETVAL = animation::find (name).number;
2639 OUTPUT: RETVAL
2640
2641animidx set (utf8_string name, SV *frames, int facings = 1)
2642 CODE:
2643{
2644 if (!SvROK (frames) && SvTYPE (SvRV (frames)) != SVt_PVAV)
2645 croak ("frames must be an arrayref");
2646
2647 AV *av = (AV *)SvRV (frames);
2648
2649 animation *anim = &animation::find (name);
2650 if (anim->number)
2651 {
2652 anim->resize (av_len (av) + 1);
2653 anim->facings = facings;
2654 }
2655 else
2656 anim = &animation::create (name, av_len (av) + 1, facings);
2657
2658 for (int i = 0; i < anim->num_animations; ++i)
2659 anim->faces [i] = face_find (SvPVutf8_nolen (*av_fetch (av, i, 1)));
2660}
2661 OUTPUT: RETVAL
2662
2663void invalidate_all ()
2664 CODE:
2665 for_all_clients (ns)
2666 ns->anims_sent.reset ();
2667

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines