Struct ark_api::world::WorldEntityQueryBuilder
source · [−]pub struct WorldEntityQueryBuilder { /* private fields */ }
Expand description
Use a WorldEntityQueryBuilder
to build a WorldEntityQuery
with an ergonomic interface.
Implementations
sourceimpl WorldEntityQueryBuilder
impl WorldEntityQueryBuilder
sourcepub fn new(query_type: EntityQueryType) -> Self
pub fn new(query_type: EntityQueryType) -> Self
Builds a new WorldEntityQueryBuilder
from a EntityQueryType
sourcepub fn with_layer_filter(&mut self, layer_filter: EntityLayerMask) -> &mut Self
pub fn with_layer_filter(&mut self, layer_filter: EntityLayerMask) -> &mut Self
Sets a layer filter on the query to be built.
Note that not calling this means to return everything regardless of layer. This cannot
currently be expressed with an EntityLayerMask
as everything
will exclude entities
that belong to no layer.
sourcepub fn without_tag(&mut self, tag: u64) -> &mut Self
pub fn without_tag(&mut self, tag: u64) -> &mut Self
Exclude a tag from the query
sourcepub fn build(&mut self) -> WorldEntityQuery
pub fn build(&mut self) -> WorldEntityQuery
Build the WorldEntityQuery
Trait Implementations
sourceimpl Clone for WorldEntityQueryBuilder
impl Clone for WorldEntityQueryBuilder
sourcefn clone(&self) -> WorldEntityQueryBuilder
fn clone(&self) -> WorldEntityQueryBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for WorldEntityQueryBuilder
impl Default for WorldEntityQueryBuilder
impl Copy for WorldEntityQueryBuilder
Auto Trait Implementations
impl RefUnwindSafe for WorldEntityQueryBuilder
impl Send for WorldEntityQueryBuilder
impl Sync for WorldEntityQueryBuilder
impl Unpin for WorldEntityQueryBuilder
impl UnwindSafe for WorldEntityQueryBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more