public function getEnterLeaveUnit() returns unit
Returns the unit that caused the enter/leave event to happen
public function onEnter(code c)
Adds a callback that is run when a unit enters the map
public function onLeave(code c)
Adds a callback that is run when a unit leaves the map