InvalidateBuffVM removes the cached VM for a buff spec so the next call reloads the script from disk. Call this after saving a buff script via the admin API.
(buffId int)
| 28 | // reloads the script from disk. Call this after saving a buff script via the |
| 29 | // admin API. |
| 30 | func InvalidateBuffVM(buffId int) { |
| 31 | delete(buffVMCache, buffId) |
| 32 | } |
| 33 | |
| 34 | func TryBuffScriptEvent(eventName string, userId int, mobInstanceId int, buffId int) (bool, error) { |
| 35 |
no test coverage detected