Furter rework on script hooks, simplifying required logic.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#define HOOK(hookName, sources, ... ) \
|
||||
#define HOOK(hookName, source, ... ) \
|
||||
{ \
|
||||
auto aggregator = CreatureLib::Battling::ScriptAggregator(); \
|
||||
for (auto& source: sources){ \
|
||||
source -> GetActiveScripts(aggregator); \
|
||||
} \
|
||||
source -> GetActiveScripts(aggregator); \
|
||||
while (aggregator.HasNext()){ \
|
||||
auto next = aggregator.GetNext(); \
|
||||
if (next == nullptr) continue; \
|
||||
|
||||
Reference in New Issue
Block a user