From 77a30f9e05332a022fdd90dd00b4dc8cb6d3cea7 Mon Sep 17 00:00:00 2001 From: "Tai @ Flex" Date: Sat, 26 Nov 2016 12:32:11 +0000 Subject: [PATCH] commentary --- api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.lua b/api.lua index 87073a5..40ecdea 100644 --- a/api.lua +++ b/api.lua @@ -1,9 +1,11 @@ local protection_detectors = {} +-- Other protection mods should be able to display their protection in the hud areas.register_hud_handler = function(handler) protection_detectors[#protection_detectors+1] = handler end +-- Generalized call to registered handlers to add their proeciton labels to the areas list local detect_extra_protection = function(pos,res) if #protection_detectors <= 0 then return res