Changed eventid from enum to int

Changed from enum to int on event id, enabling multiple instances of an
event to be subscriped to with different class member fields. Making
subscriptions per event smaller, and faster.