|
|
[CN] CCI的插件有三种分类:CORE( Core )、CX( Extension )、ETC( Etcetera )
[EN] There are three plugin types for CCI: CORE( Core), CX( Extension ), ETC( Etcetera )

[CN]
CX:ECX RC2的人物扩展,可以由CCI向导直接生成
ETC:CCI的其它插件诸如特殊技能啊、神龙愿望啊等等杂七杂八的插件。源码以sma或core为扩展名放在CCI\.Plugins文件夹里
CORE:游戏的核心插件,游戏里面扩展功能的正常运行都与核心插件息息相关。源码以core为扩展名放在CCI自定义的文件夹中,文件名也需要设置为". + 自定义的文件夹名 + 扩展名”(例如:CCI\The ECX Bots\.The ECX Bots.core )
[EN]
CX: The character extensions of ECX, generated by Wizard
ETC: Some other plugins like SpecialAttacks, DragonballWishes or something else. The source code shoud be placed in CCI\.Plugins, the extension should be ".core" or ".sma"
CORE: The core plugins of the mod which support the mod works properly. The source code should be placed in a custom folder in CCI, the file name is required as ". + the custom folder name + extension", and also the extension should be ".core".(e.g. CCI\TheECXBots\.TheECXBots.core )
代码片断|Code Snippet:
- this.plugins.BeginUpdate();
- DirectoryInfo[] directories = directoryInfo.GetDirectories("*" + this.txtFilter.Text + "*");
- for (int i = 0; i < directories.Length; i++)
- {
- DirectoryInfo directoryInfo2 = directories;
- if (directoryInfo2.Name[0] != '.')
- {
- if (File.Exists(directoryInfo2.ToString() + "\\." + directoryInfo2.ToString() + ".core"))
- {
- this.plugins.Items.Add(new Plugin(directoryInfo2.Name, PluginStyle.Core, directoryInfo2.Name, "." + directoryInfo2.Name + ".core"));
- }
- else if (File.Exists(directoryInfo2.ToString() + "\\.ClassExtension.core"))
- {
- this.plugins.Items.Add(new Plugin(directoryInfo2.Name, PluginStyle.Extension, directoryInfo2.Name, ".ClassExtension.core"));
- }
- }
- }
- directoryInfo = new DirectoryInfo(Application.StartupPath + "\\.Plugins");
- if (directoryInfo.Exists)
- {
- FileInfo[] files = directoryInfo.GetFiles("*" + this.txtFilter.Text + "*");
- for (int i = 0; i < files.Length; i++)
- {
- FileInfo fileInfo = files;
- if (fileInfo.Extension == ".core" || fileInfo.Extension == ".sma")
- {
- this.plugins.Items.Add(new Plugin(fileInfo.Name, PluginStyle.Plugin, ".Plugins", fileInfo.Name));
- }
- }
- }
- this.plugins.EndUpdate();
复制代码 |
|