(uuid uuid.UUID)
| 22 | } |
| 23 | |
| 24 | func (list *PlayerList) Player(uuid uuid.UUID) *Player { |
| 25 | for i := uintptr(0); i < list.playerList.Len(); i++ { |
| 26 | player := list.playerAtIndex(i) |
| 27 | |
| 28 | if player.UUID() == uuid { |
| 29 | return player |
| 30 | } |
| 31 | } |
| 32 | return nil |
| 33 | } |
| 34 | |
| 35 | func (list *PlayerList) PlayerByUsername(name string) *Player { |
| 36 | for i := uintptr(0); i < list.playerList.Len(); i++ { |
nothing calls this directly
no test coverage detected