aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/player_portal.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-13 13:25:14 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-13 16:03:38 +0200
commita8376aab4159a449a205de3ed7fdcaa5f6ca6369 (patch)
tree18683ebb64f9d41fb856d5e302f537785bb03f3d /server/src/entity/player_portal.rs
parent16ff78180669411326d42ea32d4a9260c018236c (diff)
downloadhurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar
hurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar.bz2
hurrycurry-a8376aab4159a449a205de3ed7fdcaa5f6ca6369.tar.zst
access entities as trait object
Diffstat (limited to 'server/src/entity/player_portal.rs')
-rw-r--r--server/src/entity/player_portal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/entity/player_portal.rs b/server/src/entity/player_portal.rs
index 11442677..53ba9c39 100644
--- a/server/src/entity/player_portal.rs
+++ b/server/src/entity/player_portal.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 anyhow::{anyhow, Result};
use hurrycurry_protocol::{glam::Vec2, PacketC};
@@ -25,7 +25,7 @@ pub struct PlayerPortal {
pub(super) to: Vec2,
}
-impl EntityT for PlayerPortal {
+impl Entity for PlayerPortal {
fn tick(&mut self, c: EntityContext) -> Result<()> {
let mut players = Vec::new();
c.game