Simple helper to loop through all members and apply a function
(fn func(ScriptActor))
| 110 | // |
| 111 | |
| 112 | func (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 |
no test coverage detected