1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/utils/test/event_factory.lua
James Gillham 18f226b369 first pass
2020-09-19 12:41:24 +01:00

21 lines
441 B
Lua

local EventCore = require 'utils.event_core'
local Public = {}
Public.raise = EventCore.on_event
function Public.on_gui_click(element, player_index)
return {
name = defines.events.on_gui_click,
tick = game.tick,
element = element,
player_index = player_index,
button = defines.mouse_button_type.left,
alt = false,
control = false,
shift = false
}
end
return Public