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

Method GetBackpackItems

internal/scripting/actor_func.go:573–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571}
572
573func (a ScriptActor) GetBackpackItems() []ScriptItem {
574 itms := make([]ScriptItem, 0, 5)
575 for _, item := range a.characterRecord.GetAllBackpackItems() {
576 itms = append(itms, newScriptItem(item))
577 }
578 return itms
579}
580
581func (a ScriptActor) GetAlignment() int {
582 return int(a.characterRecord.Alignment)

Callers

nothing calls this directly

Calls 2

newScriptItemFunction · 0.85
GetAllBackpackItemsMethod · 0.80

Tested by

no test coverage detected