diff options
| author | troido <troido@protonmail.com> | 2020-02-21 17:49:50 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-21 17:49:50 +0100 |
| commit | 07cc6d8919193c38cc13b2567ede5a510938db18 (patch) | |
| tree | 83588f118036fa56905043eb23c5a1d79e0497da /src/components.rs | |
| parent | e69d9c3b5266fd6f9215d1e3f4a761b8027a785c (diff) | |
players can now go to different rooms
Diffstat (limited to 'src/components.rs')
| -rw-r--r-- | src/components.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components.rs b/src/components.rs index 126f20e..60b32d6 100644 --- a/src/components.rs +++ b/src/components.rs @@ -7,7 +7,7 @@ use specs::{ Component }; -use crate::{Pos, PlayerId}; +use crate::{Pos, PlayerId, RoomId}; use crate::controls::Control; use crate::template::Template; @@ -93,3 +93,7 @@ pub struct Serialise { pub template: Template } +#[derive(Component, Debug, Clone)] +pub struct RoomExit { + pub destination: RoomId +} |
