Trait geo_aid::script::unroll::Definition
source · pub trait Definition {
// Required methods
fn order(&self, context: &CompileContext) -> usize;
fn contains_entity(&self, entity: usize, context: &CompileContext) -> bool;
}
Expand description
For everything that can have an order (how modifiable the entity is).
Required Methods§
sourcefn order(&self, context: &CompileContext) -> usize
fn order(&self, context: &CompileContext) -> usize
Get the complexity order (how much adjustment is done to this entity).
sourcefn contains_entity(&self, entity: usize, context: &CompileContext) -> bool
fn contains_entity(&self, entity: usize, context: &CompileContext) -> bool
Check if the object contains an entity