pub struct SceneInstance {Show 16 fields
pub id: Uuid,
pub name: String,
pub color: SceneInstanceColor,
pub active: bool,
pub opacity: MultipliedCurve<RangePercentage>,
pub input_dimmer: f32,
pub ignore_main_dimmer: bool,
pub beat_progression_offset: MultipliedCurve<RangePercentage>,
pub activation_input: Option<InputEvent>,
pub flash_input: Option<InputEvent>,
pub set_offset_on_flash: bool,
pub dimmer_input: Option<InputEvent>,
pub scene: Scene,
pub selection: LayoutSelection,
pub palette_overwrite: Option<Option<Palette>>,
pub flash: bool,
/* private fields */
}Fields§
§id: Uuid§name: String§color: SceneInstanceColor§active: bool§opacity: MultipliedCurve<RangePercentage>§input_dimmer: f32§ignore_main_dimmer: bool§beat_progression_offset: MultipliedCurve<RangePercentage>§activation_input: Option<InputEvent>§flash_input: Option<InputEvent>§set_offset_on_flash: bool§dimmer_input: Option<InputEvent>§scene: Scene§selection: LayoutSelectionWhich layout and mode this tile drives; effects inherit it.
palette_overwrite: Option<Option<Palette>>§flash: boolImplementations§
Source§impl SceneInstance
impl SceneInstance
Sourcepub fn scene_beat(
&self,
beat: f32,
collections: &Collections,
sound: &dyn SoundLevels,
) -> f32
pub fn scene_beat( &self, beat: f32, collections: &Collections, sound: &dyn SoundLevels, ) -> f32
The beat position of the scene’s effects: beat moved by the
scene’s beat offset.
pub fn from_scene_id( scene_id: AssetId<Scene>, collections: &Collections, ) -> Self
Sourcepub fn cloned_with_new_id(&self) -> Self
pub fn cloned_with_new_id(&self) -> Self
Clone this instance, but assign a fresh id so the duplicate is treated
as a distinct instance (e.g. for drag-and-drop and equality checks).
The render thread builds GPU pipelines for the new instance.
Trait Implementations§
Source§impl Clone for SceneInstance
impl Clone for SceneInstance
Source§impl CollectSoundTriggers for SceneInstance
impl CollectSoundTriggers for SceneInstance
Source§fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
Adds the triggers of
self to triggers. When two triggers share an
id, the first one wins; copies of a value share their trigger.Source§impl Debug for SceneInstance
impl Debug for SceneInstance
Source§impl<'de> Deserialize<'de> for SceneInstance
impl<'de> Deserialize<'de> for SceneInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SceneInstance
impl PartialEq for SceneInstance
Source§impl Serialize for SceneInstance
impl Serialize for SceneInstance
impl StructuralPartialEq for SceneInstance
Auto Trait Implementations§
impl Freeze for SceneInstance
impl RefUnwindSafe for SceneInstance
impl Send for SceneInstance
impl Sync for SceneInstance
impl Unpin for SceneInstance
impl UnsafeUnpin for SceneInstance
impl UnwindSafe for SceneInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more