mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add events.reset
This commit is contained in:
parent
ac6084f904
commit
e762cf9b23
4 changed files with 22 additions and 1 deletions
|
|
@ -145,6 +145,12 @@ events.on(code: str, handler: function)
|
|||
|
||||
Adds an event handler by its code, not limited to the standard ones.
|
||||
|
||||
```lua
|
||||
events.reset(code: str, [optional] handler: function)
|
||||
```
|
||||
|
||||
Removes the event, adding a handler if specified.
|
||||
|
||||
```lua
|
||||
events.emit(code: str, args...) -> bool
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue