From f3955f07478ace406422ebfe71abab359fe4c229 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Wed, 11 Apr 2018 03:52:48 -0500 Subject: -added mining module (doesnt do anything yet), -added storage and items (also dont do anything) -serialized bools in engines --- src/storage.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/storage.rs (limited to 'src/storage.rs') diff --git a/src/storage.rs b/src/storage.rs new file mode 100644 index 0000000..00dca8b --- /dev/null +++ b/src/storage.rs @@ -0,0 +1,16 @@ +use item::Item; + +#[derive(Serialize, Deserialize, Debug, Clone)] +pub struct Storage { + items : Vec, + capacity : usize, +} + +impl Storage { + pub fn new(items : Vec) -> Storage { + Storage { + items : items, + capacity : 100, + } + } +} -- cgit v1.2.3