diff options
author | dastgir <dastgirpojee@rocketmail.com> | 2015-02-11 10:01:41 -0500 |
---|---|---|
committer | dastgir <dastgirpojee@rocketmail.com> | 2015-02-11 10:01:41 -0500 |
commit | 0bd4a0178cd5beb8bee955777afe32392d75afa9 (patch) | |
tree | bb3062df27d13ada5938e6003f3b8eb55e42dc3a /src/common | |
parent | 56c4c0d997f0776c606a9a9594772f86ea181b68 (diff) | |
download | hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.gz hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.bz2 hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.xz hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.zip |
Battleground Data to HPM Struct
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPMi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h index d4b2e323c..10cf4fd9f 100644 --- a/src/common/HPMi.h +++ b/src/common/HPMi.h @@ -83,6 +83,7 @@ enum HPluginDataTypes { HPDT_MOBDB, HPDT_MOBDATA, HPDT_ITEMDATA, + HPDT_BGDATA, }; /* used in macros and conf storage */ @@ -146,6 +147,10 @@ enum HPluginConfType { #define addToITEMDATA(ptr,data,index,autofree) (HPMi->addToHPData(HPDT_ITEMDATA,HPMi->pid,(ptr),(data),(index),(autofree))) #define getFromITEMDATA(ptr,index) (HPMi->getFromHPData(HPDT_ITEMDATA,HPMi->pid,(ptr),(index))) #define removeFromITEMDATA(ptr,index) (HPMi->removeFromHPData(HPDT_ITEMDATA,HPMi->pid,(ptr),(index))) +/* battleground_data */ +#define addToBGDATA(ptr,data,index,autofree) (HPMi->addToHPData(HPDT_BGDATA,HPMi->pid,(ptr),(data),(index),(autofree))) +#define getFromBGDATA(ptr,index) (HPMi->getFromHPData(HPDT_BGDATA,HPMi->pid,(ptr),(index))) +#define removeFromBGDATA(ptr,index) (HPMi->removeFromHPData(HPDT_BGDATA,HPMi->pid,(ptr),(index))) /* HPMi->addCommand */ #define addAtcommand(cname,funcname) \ |