Party mode
This commit is contained in:
12
backend/src/tasks/lights/scripts/mod.rs
Normal file
12
backend/src/tasks/lights/scripts/mod.rs
Normal file
@ -0,0 +1,12 @@
|
||||
use common::{BulbPrefs, Param};
|
||||
use lighter_lib::BulbId;
|
||||
|
||||
mod party;
|
||||
mod waker;
|
||||
pub use party::Party;
|
||||
pub use waker::Waker;
|
||||
|
||||
pub trait LightScript {
|
||||
fn get_params(&mut self, bulb: &BulbId) -> BulbPrefs;
|
||||
fn set_param(&mut self, bulb: &BulbId, name: &str, value: Param);
|
||||
}
|
||||
Reference in New Issue
Block a user