static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        fogs.proto.msg.ErrorID o = (fogs.proto.msg.ErrorID)arg0;
        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int ShowErrorMsg(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1)
        {
            fogs.proto.msg.ErrorID arg0 = (fogs.proto.msg.ErrorID)LuaScriptMgr.GetNetObject(L, 1, typeof(fogs.proto.msg.ErrorID));
            LuaComponent           o    = CommonFunction.ShowErrorMsg(arg0);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else if (count == 2)
        {
            fogs.proto.msg.ErrorID arg0 = (fogs.proto.msg.ErrorID)LuaScriptMgr.GetNetObject(L, 1, typeof(fogs.proto.msg.ErrorID));
            Transform    arg1           = (Transform)LuaScriptMgr.GetUnityObject(L, 2, typeof(Transform));
            LuaComponent o = CommonFunction.ShowErrorMsg(arg0, arg1);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else if (count == 3)
        {
            fogs.proto.msg.ErrorID arg0 = (fogs.proto.msg.ErrorID)LuaScriptMgr.GetNetObject(L, 1, typeof(fogs.proto.msg.ErrorID));
            Transform arg1 = (Transform)LuaScriptMgr.GetUnityObject(L, 2, typeof(Transform));
            UIEventListener.VoidDelegate arg2 = null;
            LuaTypes funcType3 = LuaDLL.lua_type(L, 3);

            if (funcType3 != LuaTypes.LUA_TFUNCTION)
            {
                arg2 = (UIEventListener.VoidDelegate)LuaScriptMgr.GetNetObject(L, 3, typeof(UIEventListener.VoidDelegate));
            }
            else
            {
                LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 3);
                arg2 = (param0) =>
                {
                    int top = func.BeginPCall();
                    LuaScriptMgr.Push(L, param0);
                    func.PCall(top, 1);
                    func.EndPCall(top);
                };
            }

            LuaComponent o = CommonFunction.ShowErrorMsg(arg0, arg1, arg2);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: CommonFunction.ShowErrorMsg");
        }

        return(0);
    }