mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
Export clear_npctype_cache as both lua/perl general functions.
This commit is contained in:
@@ -3353,6 +3353,22 @@ XS(XS__disablerecipe)
|
||||
XSRETURN_YES;
|
||||
}
|
||||
|
||||
XS(XS__clear_npctype_cache);
|
||||
XS(XS__clear_npctype_cache)
|
||||
{
|
||||
dXSARGS;
|
||||
|
||||
if (items != 1) {
|
||||
Perl_croak(aTHX_ "Usage: clear_npctype_cache(npc_id)");
|
||||
}
|
||||
else {
|
||||
int32 npctype_id = (int32)SvIV(ST(0));
|
||||
quest_manager.ClearNPCTypeCache(npctype_id);
|
||||
}
|
||||
|
||||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
/*
|
||||
This is the callback perl will look for to setup the
|
||||
quest package's XSUBs
|
||||
@@ -3573,6 +3589,7 @@ EXTERN_C XS(boot_quest)
|
||||
newXS(strcpy(buf, "crosszonemessageplayerbyname"), XS__crosszonemessageplayerbyname, file);
|
||||
newXS(strcpy(buf, "enablerecipe"), XS__enablerecipe, file);
|
||||
newXS(strcpy(buf, "disablerecipe"), XS__disablerecipe, file);
|
||||
newXS(strcpy(buf, "clear_npctype_cache"), XS__clear_npctype_cache, file);
|
||||
XSRETURN_YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user