static int GetConfigData(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        NPCDataConfig obj  = (NPCDataConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "NPCDataConfig");
        uint          arg0 = (uint)LuaScriptMgr.GetNumber(L, 2);

        fogs.proto.config.NPCConfig o = obj.GetConfigData(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
    static int _Createfogs_proto_config_NPCConfig(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

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

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

        fogs.proto.config.NPCConfig obj = (fogs.proto.config.NPCConfig)o;

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

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

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

        fogs.proto.config.NPCConfig obj = (fogs.proto.config.NPCConfig)o;

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

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

        obj.talent = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
    static int set_attrs(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.config.NPCConfig obj = (fogs.proto.config.NPCConfig)o;

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

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

        obj.attrs = (fogs.proto.config.AttrValueConfig)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.config.AttrValueConfig));
        return(0);
    }
    static int set_icon(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.config.NPCConfig obj = (fogs.proto.config.NPCConfig)o;

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

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

        obj.icon = LuaScriptMgr.GetString(L, 3);
        return(0);
    }