var/mob/M = usr
var/datum/Click_Listener/CL = M.Click_Listener
CL.clickHeard = src
I'm trying to make a library that allows the dev to call a proc that returns the first atom of /type that the player clicks on.
The problem is that for this to be plug and play, I can't just override Click(). Is there a way to do this without giving them a hook to copy and paste into their Click() proc?
EDIT: If the code is confusing, sorry. It's irrelevant to the problem, as I just need to know if there's a good way to get it into the default Click() without overriding.