Initial work on outlining the dynamic side of the library.

This commit is contained in:
2021-01-31 17:31:22 +01:00
parent 2a08fb2645
commit c194c5d209
24 changed files with 321 additions and 39 deletions

View File

@@ -44,7 +44,7 @@ pub struct MoveData {
impl MoveData {
pub fn new(
name: String,
name: &str,
move_type: u8,
category: MoveCategory,
base_power: u8,
@@ -56,7 +56,7 @@ impl MoveData {
flags: HashSet<String>,
) -> MoveData {
MoveData {
name,
name: name.to_string(),
move_type,
category,
base_power,