1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-19 17:36:50 +00:00

Derive Clone in CustomizeData

This commit is contained in:
Joshua Goins 2025-03-13 00:05:14 -04:00
parent b61c3383b3
commit 0f631ca749
2 changed files with 4 additions and 4 deletions

View file

@ -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)]

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// 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 {