I have the following module called functions and a controller script:
Functions (Module):
local M = {}
M.message_post = function(receiver, id)
msg.post(receiver, id)
end
return M
Controller (Script):
local functions = require("lib.functions")
function init(self)
functions.message_post("receiver here", "id here")
end
Is it good practice just to reuse a function like message_post instead of using msg.post() the whole time in my game.