diff options
author | tom barrett <spalf0@gmail.com> | 2018-04-11 03:52:48 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-04-11 03:52:48 -0500 |
commit | f3955f07478ace406422ebfe71abab359fe4c229 (patch) | |
tree | de46b1db10ddfa2f29713db88bfbd98585063803 /src/storage.rs | |
parent | c5209135dd2032ba86a5ca3ad0647c33007970e1 (diff) |
-added mining module (doesnt do anything yet), -added storage and items (also dont do anything) -serialized bools in engines
Diffstat (limited to 'src/storage.rs')
-rw-r--r-- | src/storage.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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<Item>, + capacity : usize, +} + +impl Storage { + pub fn new(items : Vec<Item>) -> Storage { + Storage { + items : items, + capacity : 100, + } + } +} |