Add callbacks for area operations

This commit is contained in:
sofar
2019-04-01 20:28:50 -07:00
committed by GitHub
parent 09c030352f
commit 1bbb997c7a
4 changed files with 36 additions and 4 deletions

5
api.md
View File

@ -4,7 +4,10 @@ Areas mod API
API list
---
* `areas.registerHudHandler(handler)` - Registers a handler to add items to the Areas HUD. See [HUD](#hud).
* `areas:registerHudHandler(handler)` - Registers a handler to add items to the Areas HUD. See [HUD](#hud).
* `areas:registerOnAdd(func(id, area))`
* `areas:registerOnRemove(func(id))`
* `areas:registerOnMove(func(id, area, pos1, pos2))`
HUD