---@meta
---@class Barotrauma.ContentPackageManager.PackageSource : System.Object
---`Field Private Instance`
---@field skipPredicate (System.Predicate*1System*String)|(fun(obj:System.String):(System.Boolean))
---`Field Private Instance`
---@field onLoadFail (System.Action*1System*String*1System*Exception)|(fun(arg1:System.String, arg2:System.Exception))
---`Field Private Instance`
---@field directory System.String
---`Field Private Instance`
---@field regularPackages (System.Collections.Generic.HashSet*1Barotrauma*RegularPackage)|(Barotrauma.RegularPackage[])
---`Field Private Instance`
---@field corePackages (System.Collections.Generic.HashSet*1Barotrauma*CorePackage)|(Barotrauma.CorePackage[])
---`Getter Public Instance`
---@field Regular (System.Collections.Generic.IEnumerable*1Barotrauma*RegularPackage)|(fun():(Barotrauma.RegularPackage))
---`Getter Public Instance`
---@field Core (System.Collections.Generic.IEnumerable*1Barotrauma*CorePackage)|(fun():(Barotrauma.CorePackage))
---`Getter Public Instance Virtual`
---@field Count System.Int32
---`Getter Public Instance Virtual`
---@field IsReadOnly System.Boolean
_G['ContentPackageManager']['PackageSource'] = {}

---`Method Public Instance`
---@param oldPackage Barotrauma.ContentPackage
---@param newPackage Barotrauma.ContentPackage
_G['ContentPackageManager']['PackageSource'].SwapPackage = function(oldPackage, newPackage) end

---`Method Public Instance`
_G['ContentPackageManager']['PackageSource'].Refresh = function() end

---`Method Public Instance Virtual`
---@return System.Collections.Generic.IEnumerator*1Barotrauma*ContentPackage
_G['ContentPackageManager']['PackageSource'].GetEnumerator = function() end

---`Method Public Instance Virtual`
---@param item Barotrauma.ContentPackage
---@return System.Boolean
_G['ContentPackageManager']['PackageSource'].Contains = function(item) end

---`Constructor Public Instance`
---@param dir System.String
---@param skipPredicate (System.Predicate*1System*String)|(fun(obj:System.String):(System.Boolean))
---@param onLoadFail (System.Action*1System*String*1System*Exception)|(fun(arg1:System.String, arg2:System.Exception))
---@return Barotrauma.ContentPackageManager.PackageSource
_G['ContentPackageManager']['PackageSource'] = function(dir, skipPredicate, onLoadFail) end

---`Constructor Public Instance`
---@param dir System.String
---@param skipPredicate (System.Predicate*1System*String)|(fun(obj:System.String):(System.Boolean))
---@param onLoadFail (System.Action*1System*String*1System*Exception)|(fun(arg1:System.String, arg2:System.Exception))
---@return Barotrauma.ContentPackageManager.PackageSource
_G['ContentPackageManager']['PackageSource'].__new = function(dir, skipPredicate, onLoadFail) end

