1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Game interfaces can register another interfaces to receive info on game events.

This commit is contained in:
Michał W. Urbańczyk
2013-06-22 18:22:44 +00:00
parent 254f194220
commit 2be2143844
5 changed files with 39 additions and 1 deletions

View File

@@ -57,6 +57,10 @@
{ \
if(vstd::contains(cl->battleints,player)) \
cl->battleints[player]->function(__VA_ARGS__); \
\
if(cl->additionalBattleInts.count(player)) \
BOOST_FOREACH(auto bInt, cl->additionalBattleInts[player])\
bInt->function(__VA_ARGS__); \
} while (0);
#define BATTLE_INTERFACE_CALL_RECEIVERS(function,...) \