issue #2764:Modify ScriptHandlerMgr's enum to enum class and modify some related functions