Created
February 26, 2021 02:29
-
-
Save agrif/3b398f529f4f59913f7c634cf339ff8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub async fn run(&mut self) -> anyhow::Result<()> { | |
| let mut now = Time::frames(0); | |
| loop { | |
| for ad_or_news in &[true, false] { | |
| //let _: u8 = true; | |
| for _ in 0..1 { | |
| self.play_music().await?; | |
| if *ad_or_news { | |
| self.play_ad().await?; | |
| } else { | |
| self.play_news().await?; | |
| } | |
| self.play_id().await?; | |
| self.play_solo().await?; | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment