Add the current player color to the playing field view model

This commit is contained in:
Savanni D'Gerinel 2023-03-21 09:33:15 -04:00
parent e1d3a7840d
commit 1ecfecf306
1 changed files with 2 additions and 0 deletions

View File

@ -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,
}
}