Battle Talent  V11
All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | Static Public Member Functions | Static Public Attributes | Events | List of all members
CrossLink.ModManager Class Reference

Public Member Functions

delegate void loadCompleted (bool isSuc)
 
List< ModInfoGetModInfos ()
 
void Init ()
 
void InitialLoad ()
 
bool IsReadyToLoadAgain ()
 
void ClearMods ()
 
void OnModInstalled (ModfileIdPair idPair)
 
void OnModUnInstalled (ModfileIdPair[] idPairs)
 
void DiscoverMods ()
 
void LoadMods (loadCompleted cb=null)
 
void LoadModScene (string sceneKey, LoadSceneMode mode=LoadSceneMode.Single, System.Action< bool > onLoad=null)
 
void TryLoadModByPath (string path)
 
List< ItemInfoConfigGetCacheItemInfo ()
 
void OnModDisable (string name)
 
void OnModEnable (string name)
 
IResourceLocation FindAssetInMod< T > (string key, IResourceLocator modLocator)
 
bool IsEntryLocation (string key)
 
bool IsScriptLocation (string key)
 
void RemoveAllMods ()
 
void UnloadModByName (string name)
 
void ClearModOfPack ()
 
void ReloadModOfPack (List< int > ids)
 
bool IsItemInCurPack (string item)
 

Static Public Member Functions

static void AddItemInfo (ItemInfoConfig cfg, ModInfo modInfo)
 
static void SaveLuaEnableFunc (XLua.LuaFunction luaFunc)
 
static void SaveModInfo (string path, string name)
 
static string GetNameByPath (string path)
 
static bool IsModItemEnable (string name)
 
static GameObject TryGetHandPosePreset (string name, int idx)
 
static bool IsSupportedMultiplayerItem (string name)
 
static void DeleteExtraDownloadedMods ()
 
static void DeleteExtraDownloadedMod (string name)
 

Static Public Attributes

static ModManager Instance = new ModManager()
 
static Dictionary< string, HandPosehandPoseDic = new Dictionary<string, HandPose>()
 
static List< string > networkPrefabs = new List<string>()
 
static ModInfo loadingMod = null
 
static Dictionary< string, XLua.LuaFunction > disableFuncDic = new Dictionary<string, XLua.LuaFunction>()
 

Events

System.Action OnModChanged
 
System.Action< int, int > OnModInstallSuc
 
System.Action< int, int > OnModInstallFail