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

Method GetItems

internal/scripting/room_func.go:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (r ScriptRoom) GetItems() []ScriptItem {
63 itms := make([]ScriptItem, 0, 5)
64 for _, item := range r.roomRecord.GetAllFloorItems(false) {
65 itms = append(itms, newScriptItem(item))
66 }
67 return itms
68}
69
70func (r ScriptRoom) GetStashItems() []ScriptItem {
71 itms := make([]ScriptItem, 0, 5)

Callers

nothing calls this directly

Calls 2

newScriptItemFunction · 0.85
GetAllFloorItemsMethod · 0.80

Tested by

no test coverage detected