pub fn create_player_instance(&mut self, player_id: usize) {
        let index = self.create_behavior_instance(self.player_behavior_id);
        self.instances[index].instance_type = BehaviorInstanceType::Player;
        self.player_ids_inst_indices.insert(player_id, index);
    }
/// Creates a new player instance and returns the index
Creates a new player instance and returns the index
Creates a new player instance and returns the index
pub fn create_player_instance(&mut self, player_id: usize) {
        let index = self.create_behavior_instance(self.player_behavior_id);
        self.instances[index].instance_type = BehaviorInstanceType::Player;
        self.player_ids_inst_indices.insert(player_id, index);
    }
pub fn create_player_instance ( & mut self , player_id : usize ) { let index = self . create_behavior_instance ( self . player_behavior_id ) ; self . instances [ index ] . instance_type = BehaviorInstanceType :: Player ; self . player_ids_inst_indices . insert ( player_id , index ) ; }
Creates a new player instance and returns the index
Creates a new player instance and returns the index
&mut self
player_id
usize
&mut self
player_id
usize