diff options
| author | Micha White <botahamec@outlook.com> | 2023-12-28 10:26:06 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-12-28 10:26:06 -0500 |
| commit | 923aeb11d61b6e20ad33598ef7f44d0a6dfa6c15 (patch) | |
| tree | 03c2139625f32257b2ac3c246ae623e8fdfce16f /model/src/color.rs | |
| parent | ef59ee8eb6562dfd724c1cb0bbd37aebc7d798ad (diff) | |
Changes made to support the eventual C API
Diffstat (limited to 'model/src/color.rs')
| -rw-r--r-- | model/src/color.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model/src/color.rs b/model/src/color.rs index 26a1069..8a4d2a5 100644 --- a/model/src/color.rs +++ b/model/src/color.rs @@ -5,9 +5,10 @@ use std::fmt::Display; /// The color of a piece #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[repr(C)] pub enum PieceColor { - Light, - Dark, + Light = 0, + Dark = 1, } impl Display for PieceColor { |
