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 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