function addEventHandler (shared-side)
Available since version: 0.0.1
This function will bind function to specified event.
bool addEventHandler(string eventName, function func, int priority = 9999)
stringeventName: the name of the event.
functionfunc: the reference to a function, keep in mind that function must have the same amount of arguments as event.
intpriority: the function priority. The lower the value, the sooner the function/handler will be called.
true if specified event evists and operation was successfull, otherwise