diff options
Diffstat (limited to 'src/sim/entity')
| -rw-r--r-- | src/sim/entity/entities/entity_grenade.rs | 7 | ||||
| -rw-r--r-- | src/sim/entity/mod.rs | 12 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/sim/entity/entities/entity_grenade.rs b/src/sim/entity/entities/entity_grenade.rs index eead416..abc57d9 100644 --- a/src/sim/entity/entities/entity_grenade.rs +++ b/src/sim/entity/entities/entity_grenade.rs @@ -11,13 +11,6 @@ struct GrenadeEntityBehaviour { } impl EntityBehaviour for GrenadeEntityBehaviour { - fn physics_update( - &mut self, - _update_ctx: &mut EntityUpdateCtx, - _ctx: &mut SimCtx, - _delta_time: f32, - ) -> () { - } fn update( &mut self, update_ctx: &mut EntityUpdateCtx, diff --git a/src/sim/entity/mod.rs b/src/sim/entity/mod.rs index c6c350e..555d2c6 100644 --- a/src/sim/entity/mod.rs +++ b/src/sim/entity/mod.rs @@ -46,14 +46,20 @@ impl Marchable for EntityCells { } pub trait EntityBehaviour { - fn update(&mut self, update_ctx: &mut EntityUpdateCtx, ctx: &mut SimCtx, delta_time: f32) - -> (); + fn update( + &mut self, + update_ctx: &mut EntityUpdateCtx, + ctx: &mut SimCtx, + delta_time: f32, + ) -> () { + } fn physics_update( &mut self, update_ctx: &mut EntityUpdateCtx, ctx: &mut SimCtx, delta_time: f32, - ) -> (); + ) -> () { + } } pub struct EntityDef { |
