bugfix: need to recognize owner after relogin
playerid is not stable right now, need to use nickname
This commit is contained in:
@@ -8,21 +8,21 @@ object TestModels {
|
||||
val birdy = Player("birdy", PlayerID(11))
|
||||
val horsey = Player("horsey", PlayerID(12))
|
||||
|
||||
val testRoomBackend = Room(
|
||||
id = RoomID("testroom"),
|
||||
players = List(me, birdy, pony, horsey),
|
||||
owner = me.id,
|
||||
password = "password",
|
||||
allowedCards = List("xs", "s", "m", "l", "xl"),
|
||||
round = RoundState.Viewing(
|
||||
Map(me.id -> "xs", pony.id -> "l", birdy.id -> "s", horsey.id -> "m")
|
||||
),
|
||||
playersPasswords = Map("me" -> "nickpassword") // nickname into password
|
||||
)
|
||||
// val testRoomBackend = Room(
|
||||
// id = RoomID("testroom"),
|
||||
// players = List(me, birdy, pony, horsey),
|
||||
// owner = me.id,
|
||||
// password = "password",
|
||||
// allowedCards = List("xs", "s", "m", "l", "xl"),
|
||||
// round = RoundState.Viewing(
|
||||
// Map(me.id -> "xs", pony.id -> "l", birdy.id -> "s", horsey.id -> "m")
|
||||
// ),
|
||||
// playersPasswords = Map("me" -> "nickpassword") // nickname into password
|
||||
// )
|
||||
|
||||
val testSessionId = 1L
|
||||
val testSessions = Map(testSessionId -> (testRoomBackend.id, me.id))
|
||||
val testRooms = Map(testRoomBackend.id -> testRoomBackend)
|
||||
// val testSessionId = 1L
|
||||
// val testSessions = Map(testSessionId -> (testRoomBackend.id, me.id))
|
||||
// val testRooms = Map(testRoomBackend.id -> testRoomBackend)
|
||||
|
||||
val testChangesList = List(
|
||||
RoomStateView(
|
||||
|
||||
Reference in New Issue
Block a user