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

Comparing deliantra/server/plugins/cfperl/cfperl.xs (file contents):
Revision 1.30 by root, Tue Mar 7 13:44:43 2006 UTC vs.
Revision 1.33 by root, Thu Mar 16 21:08:20 2006 UTC

449 registerGlobalEvent (NULL, EVENT_MAPLEAVE, PLUGIN_NAME, globalEventListener); 449 registerGlobalEvent (NULL, EVENT_MAPLEAVE, PLUGIN_NAME, globalEventListener);
450 registerGlobalEvent (NULL, EVENT_MAPRESET, PLUGIN_NAME, globalEventListener); 450 registerGlobalEvent (NULL, EVENT_MAPRESET, PLUGIN_NAME, globalEventListener);
451 registerGlobalEvent (NULL, EVENT_MAPLOAD, PLUGIN_NAME, globalEventListener); 451 registerGlobalEvent (NULL, EVENT_MAPLOAD, PLUGIN_NAME, globalEventListener);
452 registerGlobalEvent (NULL, EVENT_MAPOUT, PLUGIN_NAME, globalEventListener); 452 registerGlobalEvent (NULL, EVENT_MAPOUT, PLUGIN_NAME, globalEventListener);
453 registerGlobalEvent (NULL, EVENT_MAPIN, PLUGIN_NAME, globalEventListener); 453 registerGlobalEvent (NULL, EVENT_MAPIN, PLUGIN_NAME, globalEventListener);
454 registerGlobalEvent (NULL, EVENT_MAPCLEAN, PLUGIN_NAME, globalEventListener);
454 registerGlobalEvent (NULL, EVENT_REMOVE, PLUGIN_NAME, globalEventListener); 455 registerGlobalEvent (NULL, EVENT_REMOVE, PLUGIN_NAME, globalEventListener);
455 registerGlobalEvent (NULL, EVENT_SHOUT, PLUGIN_NAME, globalEventListener); 456 registerGlobalEvent (NULL, EVENT_SHOUT, PLUGIN_NAME, globalEventListener);
456 registerGlobalEvent (NULL, EVENT_TELL, PLUGIN_NAME, globalEventListener); 457 registerGlobalEvent (NULL, EVENT_TELL, PLUGIN_NAME, globalEventListener);
457 registerGlobalEvent (NULL, EVENT_MUZZLE, PLUGIN_NAME, globalEventListener); 458 registerGlobalEvent (NULL, EVENT_MUZZLE, PLUGIN_NAME, globalEventListener);
458 registerGlobalEvent (NULL, EVENT_KICK, PLUGIN_NAME, globalEventListener); 459 registerGlobalEvent (NULL, EVENT_KICK, PLUGIN_NAME, globalEventListener);
459 registerGlobalEvent (NULL, EVENT_FREE_OB, PLUGIN_NAME, globalEventListener); 460 registerGlobalEvent (NULL, EVENT_FREE_OB, PLUGIN_NAME, globalEventListener);
461 registerGlobalEvent (NULL, EVENT_PLAYER_LOAD, PLUGIN_NAME, globalEventListener);
462 registerGlobalEvent (NULL, EVENT_PLAYER_SAVE, PLUGIN_NAME, globalEventListener);
460 463
461 char *argv[] = { 464 char *argv[] = {
462 "", 465 "",
463 "-e" 466 "-e"
464 "BEGIN {" 467 "BEGIN {"
510 { 513 {
511 case EVENT_CRASH: 514 case EVENT_CRASH:
512 printf ("Unimplemented for now\n"); 515 printf ("Unimplemented for now\n");
513 break; 516 break;
514 517
518 case EVENT_PLAYER_LOAD:
519 case EVENT_PLAYER_SAVE:
520 context.who = va_arg (args, object *);
521 buf = va_arg (args, char *);
522 if (buf != 0)
523 strncpy (context.message, buf, sizeof (context.message));
524 break;
525
515 case EVENT_MAPLOAD: 526 case EVENT_MAPLOAD:
516 case EVENT_MAPOUT: 527 case EVENT_MAPOUT:
517 case EVENT_MAPIN: 528 case EVENT_MAPIN:
529 case EVENT_MAPCLEAN:
518 context.map = va_arg (args, mapstruct *); 530 context.map = va_arg (args, mapstruct *);
519 break; 531 break;
520 532
521 case EVENT_MAPENTER: 533 case EVENT_MAPENTER:
522 case EVENT_MAPLEAVE: 534 case EVENT_MAPLEAVE:
651 const_iv (llevInfo) 663 const_iv (llevInfo)
652 const_iv (llevDebug) 664 const_iv (llevDebug)
653 const_iv (llevMonster) 665 const_iv (llevMonster)
654 666
655 const_iv (PLAYER) 667 const_iv (PLAYER)
668 const_iv (TRANSPORT)
656 const_iv (ROD) 669 const_iv (ROD)
657 const_iv (TREASURE) 670 const_iv (TREASURE)
658 const_iv (POTION) 671 const_iv (POTION)
659 const_iv (FOOD) 672 const_iv (FOOD)
660 const_iv (POISON) 673 const_iv (POISON)
665 const_iv (BOW) 678 const_iv (BOW)
666 const_iv (WEAPON) 679 const_iv (WEAPON)
667 const_iv (ARMOUR) 680 const_iv (ARMOUR)
668 const_iv (PEDESTAL) 681 const_iv (PEDESTAL)
669 const_iv (ALTAR) 682 const_iv (ALTAR)
670 const_iv (CONFUSION)
671 const_iv (LOCKED_DOOR) 683 const_iv (LOCKED_DOOR)
672 const_iv (SPECIAL_KEY) 684 const_iv (SPECIAL_KEY)
673 const_iv (MAP) 685 const_iv (MAP)
674 const_iv (DOOR) 686 const_iv (DOOR)
675 const_iv (KEY) 687 const_iv (KEY)
776 const_iv (ITEM_TRANSFORMER) 788 const_iv (ITEM_TRANSFORMER)
777 const_iv (QUEST) 789 const_iv (QUEST)
778 790
779 const_iv (ST_BD_BUILD) 791 const_iv (ST_BD_BUILD)
780 const_iv (ST_BD_REMOVE) 792 const_iv (ST_BD_REMOVE)
793
781 const_iv (ST_MAT_FLOOR) 794 const_iv (ST_MAT_FLOOR)
782 const_iv (ST_MAT_WALL) 795 const_iv (ST_MAT_WALL)
783 const_iv (ST_MAT_ITEM) 796 const_iv (ST_MAT_ITEM)
784 797
785 const_iv (AT_PHYSICAL) 798 const_iv (AT_PHYSICAL)
1015 1028
1016 const_event (BORN) 1029 const_event (BORN)
1017 const_event (CLOCK) 1030 const_event (CLOCK)
1018 const_event (CRASH) 1031 const_event (CRASH)
1019 const_event (PLAYER_DEATH) 1032 const_event (PLAYER_DEATH)
1033 const_event (PLAYER_LOAD)
1034 const_event (PLAYER_SAVE)
1020 const_event (GKILL) 1035 const_event (GKILL)
1021 const_event (LOGIN) 1036 const_event (LOGIN)
1022 const_event (LOGOUT) 1037 const_event (LOGOUT)
1023 const_event (MAPENTER) 1038 const_event (MAPENTER)
1024 const_event (MAPLEAVE) 1039 const_event (MAPLEAVE)
1025 const_event (MAPRESET) 1040 const_event (MAPRESET)
1026 const_event (MAPLOAD) 1041 const_event (MAPLOAD)
1027 const_event (MAPOUT) 1042 const_event (MAPOUT)
1028 const_event (MAPIN) 1043 const_event (MAPIN)
1044 const_event (MAPCLEAN)
1029 const_event (REMOVE) 1045 const_event (REMOVE)
1030 const_event (SHOUT) 1046 const_event (SHOUT)
1031 const_event (TELL) 1047 const_event (TELL)
1032 const_event (MUZZLE) 1048 const_event (MUZZLE)
1033 const_event (KICK) 1049 const_event (KICK)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines