Add the current player color to the playing field view model
This commit is contained in:
parent
f31f622d6f
commit
db80f47e8b
|
@ -8,6 +8,7 @@ pub struct PlayingFieldView {
|
|||
pub player_card_white: types::PlayerCardElement,
|
||||
pub chat: types::ChatElement,
|
||||
pub message: types::TextFieldElement,
|
||||
pub current_player: Color,
|
||||
}
|
||||
|
||||
pub fn playing_field() -> PlayingFieldView {
|
||||
|
@ -50,5 +51,6 @@ pub fn playing_field() -> PlayingFieldView {
|
|||
player_card_white,
|
||||
chat,
|
||||
message,
|
||||
current_player: Color::White,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue