42 lines
711 B
Markdown
42 lines
711 B
Markdown
# GiveupDgn 回调函数文档
|
||
|
||
**回调说明**:
|
||
`GiveupDgn`类用于处理游戏中的放弃副本事件。
|
||
|
||
---
|
||
|
||
**注册方法**:
|
||
- `Cb_giveup_dgn_Func.rawset(Key,Function)`
|
||
|
||
**例子**:
|
||
|
||
```squirrel
|
||
function Test_Function(SUser)
|
||
{
|
||
print("放弃副本");
|
||
}
|
||
Cb_giveup_dgn_Func.rawset("Test", Test_Function);
|
||
```
|
||
or
|
||
```squirrel
|
||
function Test_Function(SUser)
|
||
{
|
||
print("放弃副本");
|
||
}
|
||
Cb_giveup_dgn_Func.Test <- Test_Function;
|
||
```
|
||
or
|
||
```squirrel
|
||
function Test_Function(SUser)
|
||
{
|
||
print("放弃副本");
|
||
}
|
||
Cb_giveup_dgn_Func["Test"] <- Test_Function;
|
||
```
|
||
or
|
||
```squirrel
|
||
Cb_giveup_dgn_Func.Test <- function (SUser)
|
||
{
|
||
print("放弃副本");
|
||
};
|
||
``` |