mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-16 10:19:47 +02:00
16 lines
281 B
Lua
16 lines
281 B
Lua
|
local TriggerBase = require("core:erm.TriggerBase")
|
||
|
local _
|
||
|
|
||
|
local FU = TriggerBase:new()
|
||
|
|
||
|
function FU:call(p1, x)
|
||
|
self.ERM.activeEvent = nil
|
||
|
self.ERM.activeTrigger = self
|
||
|
for _, fn in ipairs(self.fn) do
|
||
|
fn(self.e, self.y, x)
|
||
|
end
|
||
|
self.ERM.activeTrigger = nil
|
||
|
end
|
||
|
|
||
|
return FU
|