diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-22 17:59:19 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-22 17:59:19 -0700 |
| commit | 4380928861c2a43f0d0b9793b9e501c720cf5803 (patch) | |
| tree | da6a89e7e9557a66fcfb5f498f5b4dbb8a419dbd /src/sim/entity/mod.rs | |
| parent | 020a67107b0fb78f053fa9f45205c093dfbaaeb3 (diff) | |
default impl for behaviour trait
Diffstat (limited to 'src/sim/entity/mod.rs')
| -rw-r--r-- | src/sim/entity/mod.rs | 12 |
1 files changed, 9 insertions, 3 deletions
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 { |
