[][src]Struct amethyst_editor_sync::SyncEditorBundle

pub struct SyncEditorBundle<T, U> where
    T: ComponentSet,
    U: ResourceSet
{ /* fields omitted */ }

Bundles all necessary systems for serializing all registered components and resources and sending them to the editor.

Methods

impl SyncEditorBundle<(), ()>[src]

pub fn new() -> SyncEditorBundle<(), ()>[src]

Construct an empty bundle.

impl<T, U> SyncEditorBundle<T, U> where
    T: ComponentSet,
    U: ResourceSet
[src]

pub fn sync_component<C>(
    self,
    name: &'static str
) -> SyncEditorBundle<(C, T), U> where
    C: Component + Serialize + Send
[src]

Register a component for synchronizing with the editor. This will result in a SyncComponentSystem being added.

pub fn sync_resource<R>(self, name: &'static str) -> SyncEditorBundle<T, (R, U)> where
    R: Resource + Serialize
[src]

Register a resource for synchronizing with the editor. This will result in a SyncResourceSystem being added.

pub fn get_connection(&self) -> EditorConnection[src]

Retrieve a connection to send messages to the editor via the SyncEditorSystem.

Trait Implementations

impl<'a, 'b, T, U> SystemBundle<'a, 'b> for SyncEditorBundle<T, U> where
    T: ComponentSet,
    U: ResourceSet
[src]

Auto Trait Implementations

impl<T, U> Send for SyncEditorBundle<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for SyncEditorBundle<T, U> where
    T: Sync,
    U: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Resource for T where
    T: Any + Send + Sync

impl<T> Any for T where
    T: Any

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

impl<T> Erased for T

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T