diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-13 13:25:14 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-13 16:03:38 +0200 |
commit | a8376aab4159a449a205de3ed7fdcaa5f6ca6369 (patch) | |
tree | 18683ebb64f9d41fb856d5e302f537785bb03f3d /server/src/entity/conveyor.rs | |
parent | 16ff78180669411326d42ea32d4a9260c018236c (diff) | |
download | hurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar hurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar.bz2 hurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar.zst |
access entities as trait object
Diffstat (limited to 'server/src/entity/conveyor.rs')
-rw-r--r-- | server/src/entity/conveyor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/entity/conveyor.rs b/server/src/entity/conveyor.rs index f7f091c7..5602e082 100644 --- a/server/src/entity/conveyor.rs +++ b/server/src/entity/conveyor.rs @@ -15,7 +15,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -use super::{EntityContext, EntityT}; +use super::{EntityContext, Entity}; use crate::server::interact_effect; use anyhow::{anyhow, Result}; use hurrycurry_protocol::{glam::IVec2, ItemIndex, ItemLocation}; @@ -30,7 +30,7 @@ pub struct Conveyor { pub(super) max_cooldown: f32, } -impl EntityT for Conveyor { +impl Entity for Conveyor { fn tick(&mut self, c: EntityContext) -> Result<()> { let from = c .game |