register系列函数的文档
This commit is contained in:
1 parent
a5897b9c89
commit
a8a36aaba1
3 files changed
+387
-53
No files matched your search
+2
-1
@@ -259,7 +259,8 @@ json类型的文本使用JsonEvalString
|
||||
首先注册成名为'meteorite'的事件, 在插件编写的init中添加以下内容
|
||||
```js
|
||||
core.registerEvent('meteorite', function(data){
|
||||
core.insertAction({"type": "insert", "name": "陨石坠落", "args": [data.color,data.loc,data.range]})
|
||||
core.insertAction({"type": "insert", "name": "陨石坠落", "args": [data.color, data.loc, data.range]});
|
||||
core.doAction();
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user