summaryrefslogtreecommitdiff
path: root/src/room.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.rs')
-rw-r--r--src/room.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/room.rs b/src/room.rs
index f3861dc..81b8cd0 100644
--- a/src/room.rs
+++ b/src/room.rs
@@ -59,7 +59,8 @@ use crate::{
PlayerId,
RoomId,
aerr,
- Result
+ Result,
+ Timestamp
};
@@ -142,7 +143,7 @@ impl <'a, 'b>Room<'a, 'b> {
self.world.fetch::<Output>().output.clone()
}
- pub fn update(&mut self, timestamp: i64) {
+ pub fn update(&mut self, timestamp: Timestamp) {
self.world.fetch_mut::<TimeStamp>().time = timestamp;
self.dispatcher.dispatch(&self.world);
self.world.maintain();
@@ -241,7 +242,7 @@ impl <'a, 'b>Room<'a, 'b> {
emigrants
}
- pub fn get_time(&self) -> i64 {
+ pub fn get_time(&self) -> Timestamp {
self.world.fetch::<TimeStamp>().time
}
}