pub fn activate_region_instances(&mut self, region_id: usize) {
        self.active_instance_indices = vec![];
        self.curr_region_id = region_id;

        for index in 0..self.instances.len() {
            if let Some(position) = self.instances[index].position {
                if position.0 == region_id {
                    self.active_instance_indices.push(index);
                }
            }
        }
    }
/// Activate the instances for the given region, making this region the current one
Activate the instances for the given region, making this region the current one
Activate the instances for the given region making this region the current one
pub fn activate_region_instances(&mut self, region_id: usize) {
        self.active_instance_indices = vec![];
        self.curr_region_id = region_id;
        for index in 0..self.instances.len() {
            if let Some(position) = self.instances[index].position {
                if position.0 == region_id {
                    self.active_instance_indices.push(index);
                }
            }
        }
    }
pub fn activate_region_instances ( & mut self , region_id : usize ) { self . active_instance_indices = vec ! [ ] ; self . curr_region_id = region_id ; for index in 0 .. self . instances . len ( ) { if let Some ( position ) = self . instances [ index ] . position { if position . 0 == region_id { self . active_instance_indices . push ( index ) ; } } } }
Activate the instances for the given region, making this region the current one
Activate the instances for the given region making this region the current one
&mut self
region_id
usize
&mut self
region_id
usize