summaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-16 23:25:04 +0100
committertroido <troido@protonmail.com>2020-02-16 23:25:04 +0100
commitc9a11aec577a0927afb4e97f3041b492621ce666 (patch)
treed27ab608da72a7b17741a76da37886bd85878b8c /src/template.rs
parent10bf24f99efb87b586590b8785ac8fe337db96e5 (diff)
added playerid to avoid stringly typing
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/template.rs b/src/template.rs
index 5347e51..9072032 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -24,6 +24,11 @@ impl Template {
}
}
+ pub fn unsaved(mut self) -> Self {
+ self.save = false;
+ self
+ }
+
pub fn empty(name: &str) -> Self {
Self::new(name, HashMap::new())
}