|
My Project v1
Project
|

类 | |
| class | ModSettings |
Public 类型 | |
| enum | ApiVersionEnum { Version15x = 3 , Version170 = 17 , Version180 = 18 } |
Public 成员函数 | |
| class | ModHook (string name) |
静态 Public 成员函数 | |
| static bool | GetModEntity (string packagename, out ModEntity modEntity) |
| static bool | GetAllowContinue () |
| static void | HookAction (string HookName, Func< ModLoader, bool > action) |
| 执行Hook | |
| static void | HookActionReverse (string HookName, Func< ModLoader, bool > action) |
| static bool | TryInvoke (ModHook modHook, ModLoader modLoader, Func< ModLoader, bool > action) |
| static void | RegisterHook (string HookName, ModLoader modLoader) |
| 注册Hook | |
| static void | DisableHook (ModLoader from, string HookName, string packageName, string reason) |
| static T | GetInPakOrStorageFile< T > (string filePath, string suffix="txt") |
| static ModInfo | DeserializeJson (string json) |
| static void | SaveModSettings (XElement xElement) |
| static void | SaveConfigs () |
| static void | LoadConfigs () |
| static void | LoadConfigsFromXml (XElement xElement) |
| static void | LoadModSettings (XElement xElement) |
| static void | SetConfig (string key, string value) |
| static string | ImportMod (string name, Stream stream) |
| static void | ModListAllDo (Action< ModEntity > entity) |
| static void | Initialize () |
| static void | AddException (Exception e, bool AllowContinue_=false) |
| static void | GetScmods (string path) |
| 获取所有文件 | |
| static string | StreamToString (Stream stream) |
| static byte[] | StreamToBytes (Stream stream) |
| 将 Stream 转成 byte[] | |
| static string | GetMd5 (string input) |
| static bool | FindElement (XElement xElement, Func< XElement, bool > func, out XElement elementout) |
| static bool | FindElementByGuid (XElement xElement, string guid, out XElement elementout) |
| static bool | HasAttribute (XElement element, Func< string, bool > func, out XAttribute xAttributeout) |
| static void | CombineClo (XElement xElement, Stream cloorcr) |
| static void | CombineCr (XElement xElement, Stream cloorcr) |
| static void | CombineCrLogic (XElement xElement, XElement needCombine) |
| static void | Modify (XElement source, XElement change) |
| static void | CombineDataBase (XElement DataBaseXml, Stream Xdb) |
静态 Public 属性 | |
| static string | ModSuffix = ".scmod" |
| static string | APIVersionString = "1.81" |
| static string | GameVersion = "2.4.0.0" |
| static string | ShortGameVersion = "2.4" |
| static string | ReportLink = "https://gitee.com/SC-SPM/SurvivalcraftApi/issues" |
| static string | APIReleaseLink_API = "https://gitee.com/api/v5/repos/SC-SPM/SurvivalcraftApi/releases/latest" |
| static string | APIReleaseLink_Client = "https://gitee.com/SC-SPM/SurvivalcraftApi/releases/" |
| static string | fName = "ModsManager" |
| const ApiVersionEnum | ApiVersion = ApiVersionEnum.Version180 |
| static string | DocPath = "app:/doc" |
| static string | WorldsDirectoryName = DocPath+"/Worlds" |
| static string | ProcessModListPath = ExternalPath + "/ProcessModLists" |
| static string | ModsPath = ExternalPath + "/Mods" |
| static Dictionary< string, string > | Configs = [] |
| static List< ModEntity > | ModListAll = [] |
| static List< ModEntity > | ModList = [] |
| static List< ModLoader > | ModLoaders = [] |
| static List< ModInfo > | DisabledMods = [] |
| static Dictionary< string, ModHook > | ModHooks = [] |
| static Dictionary< string, Assembly > | Dlls = [] |
| static Dictionary< KeyValuePair< ModHook, ModLoader >, bool > | m_hookBugLogged = [] |
| static Dictionary< string, string > | ModifiedElement = new Dictionary<string, string>() |
静态包函数 | |
| static void | Reboot () |
| static void | InitModifiedElement () |
静态包属性 | |
| static ModEntity | SurvivalCraftModEntity |
| static bool | ConfigLoaded |
属性 | |
| static string | ExternalPath [get] |
| static string | ScreenCapturePath = ExternalPath + "/ScreenCapture" [get] |
| static string | UserDataPath = DocPath + "/UserId.dat" [get] |
| static string | CharacterSkinsDirectoryName = DocPath + "/CharacterSkins" [get] |
| static string | FurniturePacksDirectoryName = DocPath + "/FurniturePacks" [get] |
| static string | BlockTexturesDirectoryName = DocPath + "/TexturePacks" [get] |
| static string | CommunityContentCachePath = DocPath + "/CommunityContentCache.xml" [get] |
| static string | OriginalCommunityContentCachePath = DocPath + "/OriginalCommunityContentCache.xml" [get] |
| static string | ModsSettingsPath = DocPath + "/ModSettings.xml" [get] |
| static string | SettingPath = DocPath + "/Settings.xml" [get] |
| static string | ConfigsPath = DocPath + "/Configs.xml" [get] |
| static string | ModDisPath = ExternalPath + "/DisabledMods" [get] |
| static string | LogPath = ExternalPath + "/Bugs" [get] |
| static bool | IsAndroid [get] |
静态 Private 属性 | |
| static bool | AllowContinue = true |
| static int | collisionsToHandle = 0 |
|
static |


|
static |


|
static |


|
static |


|
static |


|
static |

|
static |

|
static |


|
static |


|
static |

|
static |
| T | : | class |

|
static |
|
static |

|
static |
获取所有文件
| path | 文件路径 |


|
static |

|
static |
执行Hook
| HookName | |
| action |

|
static |


|
static |


|
static |


|
staticpackage |

|
static |


|
static |


|
static |

| class ModsManager.ModHook | ( | string | name | ) |

|
static |


|
static |

|
staticpackage |


|
static |
注册Hook
| HookName | |
| modLoader |


|
static |

|
static |

|
static |

|
static |
将 Stream 转成 byte[]

|
static |

|
static |

|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticpackage |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticpackage |
|
static |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |