Skip to content

Commit

Permalink
Added some convenient functions for DelayedEventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Nov 8, 2021
1 parent 7f4c1d2 commit 8e87ce0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions DelayedEventHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ function EventArgumentBag:ContainsArgumentWithValue(name, value)
return false
end

function EventArgumentBag:GetEventCount()
return #self.allEventArgs
end

function EventArgumentBag:GetValues()
return self.allEventArgs
end

function EventArgumentBag:GetArgValues(name)
local values = {}

for _, arguments in ipairs(self.allEventArgs) do
table.insert(values, arguments[name])
end

return values
end

local Handler = {}

local eventStorage = {}
Expand Down

0 comments on commit 8e87ce0

Please sign in to comment.