Members
Methods
callEvent(type) → {EventHandler|undefined}
调用装备事件
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string
|
装备事件类型 |
Returns:
- Type:
-
EventHandler|undefined
emit(type, actoropt)
调用装备事件和脚本
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
type |
string
|
装备事件类型 |
|
actor |
Actor
|
<optional> |
事件触发角色 |
equip(slot, actoropt)
穿上角色装备(共享库存的代价:需要传递事件触发角色)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
slot |
string
|
装备槽 |
|
actor |
Actor
|
<optional> |
事件触发角色 |