From 48c24ec8b011d081550dc78329cbe61de67b30e9 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 5 Apr 2020 20:04:33 +0200 Subject: items are now mostly replaced by itemids, with a mapping to the item in the encyclopedia --- src/components/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/components/mod.rs') diff --git a/src/components/mod.rs b/src/components/mod.rs index 1a590b2..4065cc2 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -1,5 +1,4 @@ -pub mod item; pub mod messages; pub mod faction; pub mod interactable; @@ -9,7 +8,6 @@ pub mod serialise; pub mod flags; pub mod ear; -pub use item::Item; pub use messages::{ AttackMessage, AttackInbox, @@ -46,7 +44,8 @@ use crate::{ controls::Control, Template, playerstate::RoomPos, - Timestamp + Timestamp, + ItemId, }; #[derive(Component, Debug, Clone)] @@ -229,3 +228,8 @@ pub struct CreationTime { } +#[derive(Component, Debug, Clone)] +pub struct Item(pub ItemId); + + + -- cgit