diff options
| author | troido <troido@protonmail.com> | 2020-02-24 12:58:43 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-24 12:58:43 +0100 |
| commit | f6a037faa2b675cd7318d6dd8ccee5133c89845d (patch) | |
| tree | 6d94c7e84f100d0343ba8e87c03f67082405328b /src/room.rs | |
| parent | 715c9106dbff4524f3fdf5d23f762e5e6518e0cb (diff) | |
run an update before loading an outdated room
Diffstat (limited to 'src/room.rs')
| -rw-r--r-- | src/room.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/room.rs b/src/room.rs index 3856cbd..9b0f33a 100644 --- a/src/room.rs +++ b/src/room.rs @@ -236,6 +236,10 @@ impl <'a, 'b>Room<'a, 'b> { self.world.insert(Emigration::default()); emigrants } + + pub fn get_time(&self) -> i64 { + self.world.fetch::<TimeStamp>().time + } } |
