Addressed comments

This commit is contained in:
Sam 2022-09-17 13:10:01 -04:00
parent 3d6c9a780d
commit c228d9cc3f
3 changed files with 7 additions and 2 deletions

View File

@ -701,9 +701,11 @@ impl<'a> AgentData<'a> {
controller: &mut Controller,
tgt_data: &TargetData,
read_data: &ReadData,
#[cfg(all(not(feature = "be-dyn-lib"), not(feature = "use-dyn-lib")))] rng: &mut impl Rng,
#[cfg(any(feature = "be-dyn-lib", feature = "use-dyn-lib"))] _rng: &mut impl Rng,
rng: &mut impl Rng,
) {
#[cfg(any(feature = "be-dyn-lib", feature = "use-dyn-lib"))]
let _rng = rng;
#[cfg(not(feature = "use-dyn-lib"))]
{
#[cfg(not(feature = "be-dyn-lib"))]

View File

@ -17,6 +17,8 @@ use specs::{
World,
};
// TODO: Move rtsim back into AgentData after rtsim2 when it has a separate
// crate
pub struct AgentData<'a> {
pub entity: &'a EcsEntity,
pub uid: &'a Uid,

View File

@ -38,6 +38,7 @@ mod interaction;
pub struct BehaviorData<'a, 'b, 'c> {
pub agent: &'a mut Agent,
pub agent_data: AgentData<'a>,
// TODO: Move rtsim back into AgentData after rtsim2 when it has a separate crate
pub rtsim_entity: Option<&'a RtSimEntity>,
pub read_data: &'a ReadData<'a>,
pub event_emitter: &'a mut Emitter<'c, ServerEvent>,