Boards are "Clone"able
This commit is contained in:
parent
eee7b37b08
commit
f868120a5b
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "gamenite"
|
||||
description = "A graph library for board games"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
license = "GPL-3.0-or-later"
|
||||
homepage = "https://git.danejohnson.org/dane/gamenite"
|
||||
|
@ -29,7 +29,7 @@ pub mod io;
|
||||
use serde::{ Serialize, Deserialize };
|
||||
use std::collections::{ HashMap, HashSet };
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
#[serde(default)]
|
||||
/// Configuration options for a [Board]
|
||||
pub struct Config {
|
||||
@ -127,7 +127,7 @@ impl Node {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Default)]
|
||||
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
||||
#[serde(default)]
|
||||
/// A graph of [Nodes](Node) and related information
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user