summaryrefslogtreecommitdiff
path: root/src/components/mod.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-05 20:04:33 +0200
committertroido <troido@protonmail.com>2020-04-05 20:04:33 +0200
commit48c24ec8b011d081550dc78329cbe61de67b30e9 (patch)
treed2d700897dc5ba3d0f52e8a1cd57c0f4880272fd /src/components/mod.rs
parent84c70cee089b72720a85d285ee0437b65be298b9 (diff)
items are now mostly replaced by itemids, with a mapping to the item in the encyclopedia
Diffstat (limited to 'src/components/mod.rs')
-rw-r--r--src/components/mod.rs10
1 files changed, 7 insertions, 3 deletions
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);
+
+
+