added fields for tick function
This commit is contained in:
parent
db1e04487c
commit
a8448994e7
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
use std::time::SystemTime;
|
||||||
|
|
||||||
use super::enums::{SubScenes, Scenes};
|
use super::enums::{SubScenes, Scenes};
|
||||||
use super::state_update::StateUpdate;
|
use super::state_update::StateUpdate;
|
||||||
|
|
||||||
|
@ -13,6 +15,8 @@ pub struct StreamState {
|
||||||
pub timer_can_run: bool,
|
pub timer_can_run: bool,
|
||||||
pub timer_length: f32,
|
pub timer_length: f32,
|
||||||
pub timer_text: String,
|
pub timer_text: String,
|
||||||
|
pub timer_start: SystemTime,
|
||||||
|
pub timer_finished: bool,
|
||||||
|
|
||||||
pub current_scene: Scenes,
|
pub current_scene: Scenes,
|
||||||
pub camera_sub_scene: SubScenes,
|
pub camera_sub_scene: SubScenes,
|
||||||
|
@ -32,6 +36,8 @@ impl Default for StreamState {
|
||||||
timer_can_run: true,
|
timer_can_run: true,
|
||||||
timer_length: 15.0,
|
timer_length: 15.0,
|
||||||
timer_text: String::from("0.0"),
|
timer_text: String::from("0.0"),
|
||||||
|
timer_start: SystemTime::now(),
|
||||||
|
timer_finished: true,
|
||||||
|
|
||||||
current_scene: Scenes::Camera,
|
current_scene: Scenes::Camera,
|
||||||
camera_sub_scene: SubScenes::CameraDefault,
|
camera_sub_scene: SubScenes::CameraDefault,
|
||||||
|
|
Loading…
Reference in a new issue