MCPcopy 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
9func setItemFunctions(vm *goja.Runtime) {
10 vm.Set(`CreateItem`, CreateItem)
11}
12
13func newScriptItem(i items.Item) ScriptItem {
14 return ScriptItem{i, &i}

Callers 1

setAllScriptingFunctionsFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected