mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Addressed comments
This commit is contained in:
parent
3d6c9a780d
commit
c228d9cc3f
@ -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"))]
|
||||
|
@ -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,
|
||||
|
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user