dp-s_doc/CallBack/GetClearedDungeonDiff/GetClearedDungeonDiff.md

35 lines
798 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GetClearedDungeonDiff 回调函数文档
**回调说明**
`GetClearedDungeonDiff`类用于在服务端中更改对应副本是否已清除难度的回调。
---
**注册方法**
- `Cb_WongWork_CDungeonClear_getClearedDungeonDiffFunc.rawset(副本ID(int),Diff(int))`
**参数**
- `副本的ID`
- `需要返回的已通关难度值`
**特殊说明**
- `如果没有注册ID的副本将执行原来的逻辑`
**例子**
```squirrel
Cb_WongWork_CDungeonClear_getClearedDungeonDiffFunc.rawset(1, 3);
```
or
```squirrel
Cb_WongWork_CDungeonClear_getClearedDungeonDiffFunc[1] <- 3;
```
**级别**
- `普通 冒险 王者 地狱`
**注释**
- `上面的例子是讲1号副本 也就是洛兰 无条件返回已通关难度为3 地狱级`