diff --git a/utils.lua b/utils.lua --- a/utils.lua +++ b/utils.lua @@ -30,19 +30,30 @@ PartyUtils = { }; --[[ - functions, design to simplify some typical actions while developing Instead game + functions, design to simplify some typical actions while developing Instead game ]] EngineUtils = { - getValue = function(source, param) - local value = ""; - if (type(source) == "function") then - value = source(param); - else - value = source; - end; - - return value; - end; + getStringValue = function(source, param) + local value = ""; + if (type(source) == "function") then + value = source(param); + else + value = source; + end; + + return value; + end; + + getValue = function(source, param) + local value = nil; + if (type(source) == "function") then + value = source(param); + else + value = source; + end; + + return value; + end; }; --[[