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

Method GetPlayers

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

Source from the content-addressed store, hash-verified

129}
130
131func (r ScriptRoom) GetPlayers() []*ScriptActor {
132 actorList := []*ScriptActor{}
133 for _, userId := range r.roomRecord.GetPlayers() {
134 a := GetActor(userId, 0)
135 if a == nil {
136 continue
137 }
138 actorList = append(actorList, a)
139 }
140 return actorList
141}
142
143func (r ScriptRoom) GetAllActors() []*ScriptActor {
144 actorList := []*ScriptActor{}

Callers 4

GetAllActorsMethod · 0.45
HasQuestMethod · 0.45
MissingQuestMethod · 0.45
GetAutoCompleteFunction · 0.45

Calls 1

GetActorFunction · 0.85

Tested by

no test coverage detected