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

Function InvalidateSpellVM

internal/scripting/spell.go:31–33  ·  view source on GitHub ↗

InvalidateSpellVM removes the cached VM for a spell so the next call reloads the script from disk. Call this after saving a spell script via the admin API.

(spellId string)

Source from the content-addressed store, hash-verified

29// InvalidateSpellVM removes the cached VM for a spell so the next call reloads
30// the script from disk. Call this after saving a spell script via the admin API.
31func InvalidateSpellVM(spellId string) {
32 delete(spellVMCache, spellId)
33}
34
35func TrySpellScriptEvent(eventName string, sourceUserId int, sourceMobInstanceId int, spellAggro characters.SpellAggroInfo) (bool, error) {
36

Callers 1

apiV2PutSpellScriptFunction · 0.92

Calls 1

deleteFunction · 0.85

Tested by

no test coverage detected