diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-19 00:38:09 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-19 00:38:09 +0200 |
| commit | 62d918e5feeaf5b3add982a5baaffb201a1f2ece (patch) | |
| tree | b14a0fa01f9df692592bf5d16543f43b6eb933d6 /server/src/entity/mod.rs | |
| parent | 6b156bea343a0fd9a043dcfe7113986855a89aab (diff) | |
| download | hurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar hurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar.bz2 hurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar.zst | |
Implement interaction with other players through id instead of tile pos
Diffstat (limited to 'server/src/entity/mod.rs')
| -rw-r--r-- | server/src/entity/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs index 7c38e532..4bca9dc8 100644 --- a/server/src/entity/mod.rs +++ b/server/src/entity/mod.rs @@ -41,7 +41,7 @@ use environment_effect::{EnvironmentController, EnvironmentEffectController}; use hurrycurry_client_lib::Game; use hurrycurry_data::{Serverdata, entities::EntityDecl}; use hurrycurry_locale::TrError; -use hurrycurry_protocol::{Character, PacketC, PacketS, PlayerID, glam::IVec2}; +use hurrycurry_protocol::{Character, ItemLocation, PacketC, PacketS, PlayerID}; use item_portal::ItemPortal; use player_portal::PlayerPortal; use std::{ @@ -77,7 +77,7 @@ pub trait Entity: Any { fn interact( &mut self, _c: EntityContext<'_>, - _pos: Option<IVec2>, + _target: Option<ItemLocation>, _player: PlayerID, ) -> Result<bool, TrError> { Ok(false) |