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

Method SetCharacterName

internal/users/userrecord.go:568–578  ·  view source on GitHub ↗
(cn string)

Source from the content-addressed store, hash-verified

566}
567
568func (u *UserRecord) SetCharacterName(cn string) error {
569
570 if err := ValidateName(cn); err != nil {
571 return err
572 }
573
574 GetCharacterIndex().Add(cn, u.UserId)
575 u.Character.Name = cn
576
577 return nil
578}
579
580func (u *UserRecord) SetPassword(pw string) error {
581

Callers 9

StartFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45
getTeacherFunction · 0.45

Calls 3

ValidateNameFunction · 0.85
GetCharacterIndexFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected