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