Skip to content

新功能: 插件系统 #5

@dreamness-dnalm

Description

@dreamness-dnalm

插件数据定义

插件为一个文件夹, 内部包含一个json文件存储元数据, 一个c#代码文件(.cs)
文件夹名为 plugin id
json名为 plugin_meta.json
代码文件名为 code.cs

json格式

{
    "NameEn" : "plugin demo",
    "NameZh": "插件实例",
    "Tags": ["a", "b"],
    "InvokeRule" : {  "Before": [], "After": []    },
    "Args": [
        {
                "ArgType": "",
                "Default": "",
                "Require": true,
                "NameEn": "",
                "NameZh": ""
        },
        {}, {}
    ]
}

其中ArgType包含:

  • Map
  • File
  • int
  • float
  • string
  • color
  • enum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions