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

Method each

internal/scripting/party_func.go:112–117  ·  view source on GitHub ↗

Simple helper to loop through all members and apply a function

(fn func(ScriptActor))

Source from the content-addressed store, hash-verified

110//
111
112func (p ScriptParty) each(fn func(ScriptActor)) {
113 allParty := p.GetMembers()
114 for _, a := range allParty {
115 fn(a)
116 }
117}
118
119//
120// What follows are many functions graduated from the actor level to the party level

Callers 15

SendTextMethod · 0.95
SetResetRoomIdMethod · 0.95
GiveQuestMethod · 0.95
AddGoldMethod · 0.95
AddHealthMethod · 0.95
AddManaMethod · 0.95
CommandMethod · 0.95
TrainSkillMethod · 0.95
MoveRoomMethod · 0.95
AddEventLogMethod · 0.95
GiveBuffMethod · 0.95
CancelBuffWithFlagMethod · 0.95

Calls 1

GetMembersMethod · 0.95

Tested by

no test coverage detected