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:
@@ -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,...) \
|
||||
|
||||
Reference in New Issue
Block a user