summaryrefslogtreecommitdiff
path: root/src/common/HPMi.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2015-03-10 16:14:21 -0300
committershennetsind <shennetsind@users.noreply.github.com>2015-03-10 16:14:21 -0300
commitc091b38e4400560ca0644afef9f08e4f9d6835b0 (patch)
treebd4ab3aeb652db6dd6283081e55138ab68e01fd7 /src/common/HPMi.h
parent308677fb86dc98ed9c0adc18dea396c1cd5f6ff6 (diff)
parent0bd4a0178cd5beb8bee955777afe32392d75afa9 (diff)
downloadhercules-c091b38e4400560ca0644afef9f08e4f9d6835b0.tar.gz
hercules-c091b38e4400560ca0644afef9f08e4f9d6835b0.tar.bz2
hercules-c091b38e4400560ca0644afef9f08e4f9d6835b0.tar.xz
hercules-c091b38e4400560ca0644afef9f08e4f9d6835b0.zip
Merge pull request #461 from dastgir/bg_HPM
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) \