pub enum RegionEvent {
Left(u32, Option<Vec2<i32>>),
Entered(u32, Option<Vec2<i32>>),
}
Variants§
Left(u32, Option<Vec2<i32>>)
Contains the key of the region the entity moved to.
This can be None
if the Pos
component is removed or
Presence::sync_me
becomes false
.
If an entity is deleted this event won’t be generated.
Entered(u32, Option<Vec2<i32>>)
Contains the key of the region the entity came from.
Auto Trait Implementations§
impl Freeze for RegionEvent
impl RefUnwindSafe for RegionEvent
impl Send for RegionEvent
impl Sync for RegionEvent
impl Unpin for RegionEvent
impl UnwindSafe for RegionEvent
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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