static int _m_CreaterTimer_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) { string _gobjName = LuaAPI.lua_tostring(L, 1); TimeControl gen_ret = TimeControl.CreaterTimer(_gobjName); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 0) { TimeControl gen_ret = TimeControl.CreaterTimer( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to TimeControl.CreaterTimer!")); }