class "Config" function Config:Config(...) for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycore.Config(unpack(arg)) end end function Config:loadConfig(configNamespace, fileName) local retVal = Polycore.Config_loadConfig(self.__ptr, configNamespace, fileName) end function Config:saveConfig(configNamespace, fileName) local retVal = Polycore.Config_saveConfig(self.__ptr, configNamespace, fileName) end function Config:getEntry(configNamespace, key) local retVal = Polycore.Config_getEntry(self.__ptr, configNamespace, key) if Polycore.__ptr_lookup[retVal] ~= nil then return Polycore.__ptr_lookup[retVal] else Polycore.__ptr_lookup[retVal] = ConfigEntry("__skip_ptr__") Polycore.__ptr_lookup[retVal].__ptr = retVal return Polycore.__ptr_lookup[retVal] end end function Config:setStringValue(configNamespace, key, value) local retVal = Polycore.Config_setStringValue(self.__ptr, configNamespace, key, value) end function Config:setNumericValue(configNamespace, key, value) local retVal = Polycore.Config_setNumericValue(self.__ptr, configNamespace, key, value) end function Config:getNumericValue(configNamespace, key) local retVal = Polycore.Config_getNumericValue(self.__ptr, configNamespace, key) return retVal end function Config:getStringValue(configNamespace, key) local retVal = Polycore.Config_getStringValue(self.__ptr, configNamespace, key) return retVal end