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§
source§impl 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§
source§impl Clone for WorldEntityQueryBuilder
impl Clone for WorldEntityQueryBuilder
source§fn clone(&self) -> WorldEntityQueryBuilder
fn clone(&self) -> WorldEntityQueryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more