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

Function GetItem

internal/scripting/item_func.go:110–113  ·  view source on GitHub ↗

Converts an item into a ScriptItem for use in the scripting engine

(i items.Item)

Source from the content-addressed store, hash-verified

108
109// Converts an item into a ScriptItem for use in the scripting engine
110func GetItem(i items.Item) *ScriptItem {
111 sItm := newScriptItem(i)
112 return &sItm
113}
114
115// ////////////////////////////////////////////////////////
116//

Callers 4

TryItemScriptEventFunction · 0.85
TryItemCommandFunction · 0.85
TryItemTryPurchaseEventFunction · 0.85
UncurseMethod · 0.85

Calls 1

newScriptItemFunction · 0.85

Tested by

no test coverage detected