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

Function GetByUserId

internal/users/users.go:170–179  ·  view source on GitHub ↗
(userId int)

Source from the content-addressed store, hash-verified

168}
169
170func GetByUserId(userId int) *UserRecord {
171 userManagerMu.RLock()
172 defer userManagerMu.RUnlock()
173
174 if user, ok := userManager.Users[userId]; ok {
175 return user
176 }
177
178 return nil
179}
180
181func GetByConnectionId(connectionId connections.ConnectionId) *UserRecord {
182 userManagerMu.RLock()

Callers 15

HandleInputEventsMethod · 0.92
HandleSystemEventsMethod · 0.92
enterWorldMethod · 0.92
MainWorkerMethod · 0.92
processInputMethod · 0.92
KickMethod · 0.92
onLookInputMethod · 0.92
onLookInputMethod · 0.92
onCLIRequestMethod · 0.92
exitZombieModeMethod · 0.92
onPlayerDropMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected