Implements plugin onLoad call

Implements #4438
This commit is contained in:
Simone Mainardi 2020-09-16 10:48:12 +02:00
parent 18db446acd
commit 64f0922b6b
2 changed files with 27 additions and 8 deletions

View file

@ -71,7 +71,14 @@ local script = {
-- #################################################################
-- @brief Called when the script is going to be loaded.
-- @brief Called when the plugin containing the user script is loaded/reloaded
-- @return nil
function script.onLoad()
end
-- #################################################################
-- @brief Called when the user script is loaded
-- @return true if the script should be loaded, false otherwise
-- @notes Can be used to init some script global state or to skip the script
-- execution on some particular conditions