|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| FastDebugModEntity () | |
| override void | InitResources () |
| 初始化Content资源 | |
| void | ReadDirResouces (string basepath, string path) |
| override void | GetFiles (string extension, Action< string, Stream > action) |
| 获取指定后缀文件列表,带. | |
| override bool | GetFile (string filename, Action< Stream > stream) |
| 获取指定文件 | |
| override bool | GetAssetsFile (string filename, Action< Stream > stream) |
| Public 成员函数 继承自 Game.ModEntity | |
| ModEntity () | |
| ModEntity (ZipArchive zipArchive) | |
| ModEntity (string FileName, ZipArchive zipArchive) | |
| virtual void | LoadIcon (Stream stream) |
| virtual bool | GetFilesAndExist (string extension, Action< string, Stream > action) |
| virtual void | LoadLauguage () |
| 初始化语言包 | |
| virtual void | ModInitialize () |
| Mod初始化 | |
| virtual void | LoadBlocksData () |
| 初始化BlocksData资源 | |
| virtual void | LoadXdb (ref XElement xElement) |
| 初始化Database数据 | |
| virtual void | LoadClo (ClothingBlock block, ref XElement xElement) |
| 初始化Clothing数据 | |
| virtual void | LoadCr (ref XElement xElement) |
| 初始化CraftingRecipe | |
| virtual Assembly[] | GetAssemblies () |
| 加载mod程序集 | |
| virtual void | HandleAssembly (Assembly assembly) |
| virtual void | LoadJs () |
| virtual void | CheckDependencies (List< ModEntity > modEntities=null) |
| 检查依赖项 | |
| virtual void | SaveSettings (XElement xElement) |
| 保存设置 | |
| virtual void | LoadSettings (XElement xElement) |
| 加载设置 | |
| virtual void | OnBlocksInitalized () |
| BlocksManager初始化完毕 | |
| virtual void | Dispose () |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
Public 属性 | |
| Dictionary< string, FileInfo > | FModFiles = [] |
| Public 属性 继承自 Game.ModEntity | |
| ModInfo | modInfo |
| Texture2D | Icon |
| ZipArchive | ModArchive |
| Dictionary< string, ZipArchiveEntry > | ModFiles = [] |
| List< Type > | BlockTypes = [] |
| string | ModFilePath |
| bool | IsDisabled |
| ModDisableReason | DisableReason = ModDisableReason.Unknown |
| long | Size |
| bool | IsDependencyChecked |
额外继承的成员函数 | |
| 静态 Public 属性 继承自 Game.ModEntity | |
| static HashSet< string > | InvalidDllNames = ["Survivalcraft.dll", "Engine.dll", "EntitySystem.dll"] |
| const string | fName = "ModEntity" |
| 属性 继承自 Game.ModEntity | |
| ModLoader | Loader [get, set] |
在文件 FastDebugModEntity.cs 第 7 行定义.
| Game.FastDebugModEntity.FastDebugModEntity | ( | ) |
|
virtual |
重载 Game.ModEntity .
在文件 FastDebugModEntity.cs 第 117 行定义.
|
virtual |
获取指定文件
| filename | |
| stream | 参数1打开的文件流 |
重载 Game.ModEntity .
在文件 FastDebugModEntity.cs 第 96 行定义.


|
virtual |
|
virtual |
| void Game.FastDebugModEntity.ReadDirResouces | ( | string | basepath, |
| string | path ) |
| Dictionary<string, FileInfo> Game.FastDebugModEntity.FModFiles = [] |
在文件 FastDebugModEntity.cs 第 8 行定义.