Public Member Functions | |
delegate void | loadCompleted (bool isSuc) |
List< ModInfo > | GetModInfos () |
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< ItemInfoConfig > | GetCacheItemInfo () |
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, HandPose > | handPoseDic = 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 |