mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Added Selection.get_arguments
This commit is contained in:
@@ -62,6 +62,12 @@ function Selection.stop(player)
|
|||||||
end
|
end
|
||||||
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)
|
--- Alias to Event.add(defines.events.on_player_selected_area)
|
||||||
function Selection.on_selection(handler)
|
function Selection.on_selection(handler)
|
||||||
return Event.add(defines.events.on_player_selected_area, handler)
|
return Event.add(defines.events.on_player_selected_area, handler)
|
||||||
|
|||||||
Reference in New Issue
Block a user