Feat: add exit room

This commit is contained in:
Grail Finder
2025-05-11 13:59:25 +03:00
parent cf5643227b
commit f2aee1469b
7 changed files with 55 additions and 4 deletions

View File

@ -47,6 +47,12 @@ type UserState struct {
Role UserRole
}
func (u *UserState) ExitRoom() {
u.RoomID = ""
u.Team = UserTeamNone
u.Role = UserRoleNone
}
func MakeTestState(creatorName string) *FullInfo {
cards := []WordCard{
{Word: "hamster", Color: "blue"},