summaryrefslogtreecommitdiff
path: root/src/common/HPMi.h
diff options
context:
space:
mode:
authordastgir <dastgirpojee@rocketmail.com>2015-02-11 10:01:41 -0500
committerdastgir <dastgirpojee@rocketmail.com>2015-02-11 10:01:41 -0500
commit0bd4a0178cd5beb8bee955777afe32392d75afa9 (patch)
treebb3062df27d13ada5938e6003f3b8eb55e42dc3a /src/common/HPMi.h
parent56c4c0d997f0776c606a9a9594772f86ea181b68 (diff)
downloadhercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.gz
hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.bz2
hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.tar.xz
hercules-0bd4a0178cd5beb8bee955777afe32392d75afa9.zip
Battleground Data to HPM Struct
Diffstat (limited to 'src/common/HPMi.h')
-rw-r--r--src/common/HPMi.h5
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) \