static int _Createfogs_proto_msg_LotteryInfo(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            fogs.proto.msg.LotteryInfo obj = new fogs.proto.msg.LotteryInfo();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.LotteryInfo.New");
        }

        return(0);
    }
    static int get_free_times1(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.LotteryInfo obj = (fogs.proto.msg.LotteryInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name free_times1");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index free_times1 on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.free_times1);
        return(1);
    }
    static int set_diamond_multi_times(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.LotteryInfo obj = (fogs.proto.msg.LotteryInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name diamond_multi_times");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index diamond_multi_times on a nil value");
            }
        }

        obj.diamond_multi_times = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }