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

Method getScript

internal/scripting/pet_func.go:173–178  ·  view source on GitHub ↗

Package-internal helpers

()

Source from the content-addressed store, hash-verified

171// ////////////////////////////////////////////////////////
172
173func (p ScriptPet) getScript() string {
174 if p.petRecord != nil {
175 return p.petRecord.GetScript()
176 }
177 return ``
178}
179
180// GetPet returns a ScriptPet wrapping the given pet pointer.
181// Returns nil if pet is nil or does not exist.

Callers 3

getItemVMFunction · 0.45
getPetVMFunction · 0.45
getMobVMFunction · 0.45

Calls 1

GetScriptMethod · 0.45

Tested by

no test coverage detected