Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1|回复: 0
打印 上一主题 下一主题

[CCI]插件归类|Plugins Sorting Out

[复制链接]

189

主题

189

帖子

580

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
580
跳转到指定楼层
楼主
发表于 2017-7-13 16:04:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[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:

  1. this.plugins.BeginUpdate();
  2. DirectoryInfo[] directories = directoryInfo.GetDirectories("*" + this.txtFilter.Text + "*");
  3. for (int i = 0; i < directories.Length; i++)
  4. {
  5. DirectoryInfo directoryInfo2 = directories;
  6. if (directoryInfo2.Name[0] != '.')
  7. {
  8. if (File.Exists(directoryInfo2.ToString() + "\\." + directoryInfo2.ToString() + ".core"))
  9. {
  10. this.plugins.Items.Add(new Plugin(directoryInfo2.Name, PluginStyle.Core, directoryInfo2.Name, "." + directoryInfo2.Name + ".core"));
  11. }
  12. else if (File.Exists(directoryInfo2.ToString() + "\\.ClassExtension.core"))
  13. {
  14. this.plugins.Items.Add(new Plugin(directoryInfo2.Name, PluginStyle.Extension, directoryInfo2.Name, ".ClassExtension.core"));
  15. }
  16. }
  17. }
  18. directoryInfo = new DirectoryInfo(Application.StartupPath + "\\.Plugins");
  19. if (directoryInfo.Exists)
  20. {
  21. FileInfo[] files = directoryInfo.GetFiles("*" + this.txtFilter.Text + "*");
  22. for (int i = 0; i < files.Length; i++)
  23. {
  24. FileInfo fileInfo = files;
  25. if (fileInfo.Extension == ".core" || fileInfo.Extension == ".sma")
  26. {
  27. this.plugins.Items.Add(new Plugin(fileInfo.Name, PluginStyle.Plugin, ".Plugins", fileInfo.Name));
  28. }
  29. }
  30. }
  31. this.plugins.EndUpdate();
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.  

GMT+8, 2026-10-26 07:03 , Processed in 0.229134 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表