diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-07 21:17:21 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-07 21:17:21 +0200 |
| commit | 1406127825e30514dc13909c583895fd682c7107 (patch) | |
| tree | 483ccbfd98eb7ef47d7684562f0adbbee51a67e6 /server/src/entity/conveyor.rs | |
| parent | f88a296aac8840f713031b5b716b8d9fa3e18b8c (diff) | |
| download | hurrycurry-1406127825e30514dc13909c583895fd682c7107.tar hurrycurry-1406127825e30514dc13909c583895fd682c7107.tar.bz2 hurrycurry-1406127825e30514dc13909c583895fd682c7107.tar.zst | |
add bus map and tile entities
Diffstat (limited to 'server/src/entity/conveyor.rs')
| -rw-r--r-- | server/src/entity/conveyor.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/entity/conveyor.rs b/server/src/entity/conveyor.rs index b74c03ef..48d0d154 100644 --- a/server/src/entity/conveyor.rs +++ b/server/src/entity/conveyor.rs @@ -1,4 +1,4 @@ -use super::Entity; +use super::EntityT; use crate::{ data::Gamedata, game::{interact_effect, Tile}, @@ -8,7 +8,7 @@ use anyhow::{anyhow, Result}; use glam::IVec2; use std::collections::{HashMap, VecDeque}; -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct Conveyor { pub(super) from: IVec2, pub(super) to: IVec2, @@ -16,7 +16,7 @@ pub struct Conveyor { pub(super) max_cooldown: f32, } -impl Entity for Conveyor { +impl EntityT for Conveyor { fn tick( &mut self, data: &Gamedata, @@ -46,6 +46,7 @@ impl Entity for Conveyor { Some(to.kind), packet_out, points, + true, ); } |