summaryrefslogtreecommitdiff
path: root/core/gotham_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/gotham_state.rs')
-rw-r--r--core/gotham_state.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/gotham_state.rs b/core/gotham_state.rs
index 422499f2f..43019eabb 100644
--- a/core/gotham_state.rs
+++ b/core/gotham_state.rs
@@ -76,6 +76,10 @@ impl GothamState {
pub fn take<T: 'static>(&mut self) -> T {
self.try_take().unwrap_or_else(|| missing::<T>())
}
+
+ pub fn clear(&mut self) {
+ self.data.clear();
+ }
}
fn missing<T: 'static>() -> ! {