added accessors for newly private members
This commit is contained in:
parent
eb807b32ac
commit
b9646df2d1
1 changed files with 15 additions and 3 deletions
|
@ -13,9 +13,9 @@ pub struct StreamStates {
|
|||
pub timer_length: f32,
|
||||
pub timer_text: String,
|
||||
|
||||
pub current_scene: enums::Scenes,
|
||||
pub camera_sub_scene: enums::Scenes,
|
||||
pub screen_sub_scene: enums::Scenes,
|
||||
current_scene: enums::Scenes,
|
||||
camera_sub_scene: enums::Scenes,
|
||||
screen_sub_scene: enums::Scenes,
|
||||
}
|
||||
|
||||
impl Default for StreamStates {
|
||||
|
@ -44,6 +44,18 @@ impl StreamStates {
|
|||
StreamStates{..Default::default()}
|
||||
}
|
||||
|
||||
pub fn get_current_scene(&self) -> enums::Scenes {
|
||||
self.current_scene
|
||||
}
|
||||
|
||||
pub fn get_current_camera_sub_scene(&self) -> enums::Scenes {
|
||||
self.camera_sub_scene
|
||||
}
|
||||
|
||||
pub fn get_current_screen_sub_scene(&self) -> enums::Scenes {
|
||||
self.screen_sub_scene
|
||||
}
|
||||
|
||||
pub fn change_scene(self, scene: &enums::Scenes) -> Self {
|
||||
match scene {
|
||||
enums::Scenes::CameraDefault | enums::Scenes::CameraWithUpperRight |
|
||||
|
|
Loading…
Reference in a new issue