diff --git a/src/chardat.rs b/src/chardat.rs index 50ac592..46f92f0 100644 --- a/src/chardat.rs +++ b/src/chardat.rs @@ -98,7 +98,7 @@ fn convert_subrace_dat(subrace: &Subrace) -> u8 { #[binrw] #[br(little)] #[repr(C)] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct CustomizeData { /// The race of the character. #[br(map = convert_dat_race)] diff --git a/src/race.rs b/src/race.rs index 3936770..adf7f8c 100755 --- a/src/race.rs +++ b/src/race.rs @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2023 Joshua Goins // SPDX-License-Identifier: GPL-3.0-or-later -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// Gender of the character. pub enum Gender { @@ -9,7 +9,7 @@ pub enum Gender { Female, } -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// The race's "subrace". Each race has two subraces, which are actually identical (even down to the ids!) /// with the exception of Hyurs, which have two unique subraces that are really two separate races. @@ -32,7 +32,7 @@ pub enum Subrace { Veena, } -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// The major races of Eorzea. pub enum Race {