Feat: components chain

This commit is contained in:
Grail Finder
2025-05-03 09:18:05 +03:00
parent 8b68aee884
commit 5cf1f1199e
7 changed files with 73 additions and 50 deletions

View File

@ -50,15 +50,21 @@ type UserState struct {
func MakeTestState() *UserState {
cards := []WordCard{
{Word: "hamster", Color: "blue"},
{Word: "child", Color: "red"},
{Word: "wheel", Color: "white"},
{Word: "condition", Color: "black"},
{Word: "test", Color: "white"},
}
room := RoomPublic{
ID: "test-id",
CreatedAt: time.Now(),
CreatorName: "test-name",
Cards: cards,
}
return &UserState{
Username: "test-name",
Team: UserTeamNone,
Role: UserRoleNone,
Room: room,
}
}