Added Selection.get_arguments

This commit is contained in:
Cooldude2606
2021-04-24 00:28:19 +01:00
parent effdb97387
commit e9ec57225b

View File

@@ -62,6 +62,12 @@ function Selection.stop(player)
end
end
--- Get the selection arguments for a player
function Selection.get_arguments(player)
if not selections[player.index] then return end
return selections[player.index].arguments
end
--- Alias to Event.add(defines.events.on_player_selected_area)
function Selection.on_selection(handler)
return Event.add(defines.events.on_player_selected_area, handler)