MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / InvalidateBuffVM

Function InvalidateBuffVM

internal/scripting/buff.go:30–32  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

28// reloads the script from disk. Call this after saving a buff script via the
29// admin API.
30func InvalidateBuffVM(buffId int) {
31 delete(buffVMCache, buffId)
32}
33
34func TryBuffScriptEvent(eventName string, userId int, mobInstanceId int, buffId int) (bool, error) {
35

Callers 1

apiV1PutBuffScriptFunction · 0.92

Calls 1

deleteFunction · 0.85

Tested by

no test coverage detected