Struct heron_core::CorePlugin[][src]

pub struct CorePlugin {
    pub steps_per_second: Option<f64>,
}

Plugin that registers stage resources and components.

It does NOT enable physics behavior.

Fields

steps_per_second: Option<f64>

Number of physics step per second. None means to run physics step as part of the application update instead.

Implementations

impl CorePlugin[src]

#[must_use]
pub fn from_steps_per_second(steps_per_second: u8) -> Self
[src]

Configure how many times per second the physics world needs to be updated

Panics

Panic if the number of steps_per_second is 0

Trait Implementations

impl Clone for CorePlugin[src]

impl Copy for CorePlugin[src]

impl Debug for CorePlugin[src]

impl Default for CorePlugin[src]

impl Plugin for CorePlugin[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> FromWorld for T where
    T: Default

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,