Battle Talent  V11
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CrossLink.Network.NetworkModMgr Class Reference

Public Member Functions

void Init ()
 
void RevertificationModfile ()
 
void TryDownloadMods (List< ModProfile > modProfiles, Action< int, int, bool > OnInstall, Action< int, int, FileDownloadInfo > OnDownload)
 
FileDownloadInfo DownloadModByModProfile (ModProfile modProfile, Action< int, int, FileDownloadInfo > OnDownload)
 
void CancelDownload ()
 
void CancelDownload (int modId, int modfileId)
 
void ReloadModOfSelectPack ()
 
void ReloadMods (List< int > ids)
 
void RemoveUnmatchedExtraMods (List< int > modIds)
 
void RemoveDownloadedMods ()
 
ModPack GetPackByIndex (int idx)
 
void SaveTempPack (string name)
 
void ResetTempPack ()
 
bool DeletePack (ModPack pack)
 
bool DuplicatePack (ModPack pack)
 
void EditPackData (ModPack pack)
 
void SaveModPacks ()
 
void SetSelectedModPack (ModPack pack)
 
ModPack GetSelectModPack ()
 
bool IsCurPackExistMod ()
 
ModProfile GetModProfile (int modId)
 
void GetAllMods (List< int > modIds, Action< RequestPage< ModProfile >> successCallback, Action< WebRequestError > errorCallback)
 

Static Public Member Functions

static string ParseModIdsToString (List< int > ids)
 
static List< int > ParseModIdsStringToList (string str)
 
static bool IsDebugMode ()
 
static void SwitchToDebugMode (bool flag)
 

Public Attributes

List< ModPackpacks
 
ModPack tempPack
 
bool isVertifySuc = false
 
Dictionary< int, ModfileIdPair > cacheModInfo = new Dictionary<int, ModfileIdPair>()
 
List< ModfileIdPair > downloadedExtraMods = new List<ModfileIdPair>()
 
Dictionary< int, NetworkModInfomodProfileState = new Dictionary<int, NetworkModInfo>()
 
Dictionary< int, ModProfile > cacheModProfile = new Dictionary<int, ModProfile>(32)
 

Static Public Attributes

static NetworkModMgr Instance = new NetworkModMgr()