Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoMudEngine/GoMud
/ setItemFunctions
Function
setItemFunctions
internal/scripting/item_func.go:9–11 ·
view source on GitHub ↗
(vm *goja.Runtime)
Source
from the content-addressed store, hash-verified
7
)
8
9
func
setItemFunctions(vm *goja.Runtime) {
10
vm.Set(`CreateItem`, CreateItem)
11
}
12
13
func
newScriptItem(i items.Item) ScriptItem {
14
return
ScriptItem{i, &i}
Callers
1
setAllScriptingFunctions
Function · 0.85
Calls
1
Set
Method · 0.65
Tested by
no test coverage detected