Skip to content

Commit

Permalink
完善一波schema
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Feb 4, 2024
1 parent 7fc13e0 commit 6e9644a
Showing 1 changed file with 82 additions and 14 deletions.
96 changes: 82 additions & 14 deletions playeraction/playeraction.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"properties": {
"type": {
"const": "sound",
"description": ""
"description": "发出音效"
}
},
"required": [
Expand All @@ -333,7 +333,7 @@
"properties": {
"type": {
"const": "kick",
"description": ""
"description": "踢出玩家"
}
},
"required": [
Expand All @@ -345,7 +345,7 @@
"properties": {
"type": {
"const": "mission",
"description": ""
"description": "任务"
}
},
"required": [
Expand All @@ -357,7 +357,7 @@
"properties": {
"type": {
"const": "tree.add",
"description": ""
"description": "植树活动"
}
},
"required": [
Expand All @@ -369,7 +369,7 @@
"properties": {
"type": {
"const": "tree.milestone",
"description": ""
"description": "植树活动"
}
},
"required": [
Expand All @@ -381,7 +381,7 @@
"properties": {
"type": {
"const": "tree.main",
"description": ""
"description": "植树活动"
}
},
"required": [
Expand All @@ -393,19 +393,29 @@
"properties": {
"type": {
"enum": ["teleport", "tp"],
"description": ""
"description": "传送玩家"
},
"pos": {
"type": "string",
"description": "目标坐标",
"pattern": "^-?\\d+(\\.\\d+)?:(-?\\d+(\\.\\d+)?):(-?\\d+(\\.\\d+)?)(:(-?\\d+(\\.\\d+)?):(-?\\d+(\\.\\d+)?))?$"
}
},
"required": [
"type"
"type",
"pos"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "workshop",
"description": ""
"description": "打开个性工坊的UI"
},
"tabId": {
"type": "string",
"description": "打开的TabID"
}
},
"required": [
Expand All @@ -417,7 +427,11 @@
"properties": {
"type": {
"const": "workshop.group",
"description": ""
"description": "个性工坊的某分类页面"
},
"group": {
"type": "string",
"description": "分类ID"
}
},
"required": [
Expand All @@ -429,7 +443,11 @@
"properties": {
"type": {
"const": "netease.shop",
"description": ""
"description": "打开网易商城"
},
"category": {
"type": "string",
"description": "商品分类"
}
},
"required": [
Expand All @@ -441,7 +459,15 @@
"properties": {
"type": {
"const": "activity",
"description": ""
"description": "打开活动系统UI的对应活动"
},
"id": {
"type": "string",
"description": "活动ID"
},
"index": {
"type": "integer",
"description": "索引"
}
},
"required": [
Expand All @@ -452,13 +478,55 @@
"type": "object",
"properties": {
"type": {
"const": "modui.gain",
"description": ""
"const": "navigate",
"description": "可视化路径引导到某一坐标"
},
"stop": {
"type": "boolean",
"description": "是否停止玩家已有路径引导",
"default": true
},
"target": {
"type": "string",
"description": "目标坐标",
"pattern": "^-?\\d+(\\.\\d+)?:(-?\\d+(\\.\\d+)?):(-?\\d+(\\.\\d+)?)(:(-?\\d+(\\.\\d+)?):(-?\\d+(\\.\\d+)?))?$",
},
"sfx": {
"type": "string",
"description": "贴图",
"default": "sfx/frame/navi_red"
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "modui.gain",
"description": "显示ModUI的获取奖品的界面"
},
"content": {
"type": "object",
"description": "内容(Exchange)"
},
"closeCallback": {
"type": "object",
"description": "关闭后的回调",
"$ref": "#"
},
"title": {
"type": "string",
"description": "顶部显示标题",
"default": "你获得了"
}
},
"required": [
"type",
"content"
]
}
]
}

0 comments on commit 6e9644a

Please sign in to comment.