Fix visibility on items in card.rs
This commit is contained in:
14
src/card.rs
14
src/card.rs
@@ -4,7 +4,7 @@ use std::ops::Deref;
|
|||||||
|
|
||||||
/// Value for the "sub tiles" inside a room tile
|
/// Value for the "sub tiles" inside a room tile
|
||||||
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
||||||
enum Cell {
|
pub enum Cell {
|
||||||
#[default]
|
#[default]
|
||||||
Empty,
|
Empty,
|
||||||
NW,
|
NW,
|
||||||
@@ -15,7 +15,7 @@ enum Cell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum CutLine {
|
pub enum CutLine {
|
||||||
VertLeft,
|
VertLeft,
|
||||||
VertRight,
|
VertRight,
|
||||||
HorizUpper,
|
HorizUpper,
|
||||||
@@ -23,26 +23,26 @@ enum CutLine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum FlipDir {
|
pub enum FlipDir {
|
||||||
Vertical,
|
Vertical,
|
||||||
Horizontal,
|
Horizontal,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum TransposeIndex {
|
pub enum TransposeIndex {
|
||||||
First,
|
First,
|
||||||
Second,
|
Second,
|
||||||
Third,
|
Third,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum TransposeSelection {
|
pub enum TransposeSelection {
|
||||||
Column(TransposeIndex),
|
Column(TransposeIndex),
|
||||||
Row(TransposeIndex),
|
Row(TransposeIndex),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum RotationDir {
|
pub enum RotationDir {
|
||||||
Clockwise,
|
Clockwise,
|
||||||
CounterClockwise,
|
CounterClockwise,
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ enum RotationDir {
|
|||||||
/// An invidiual room, or "card" in the player's hand. The room may
|
/// An invidiual room, or "card" in the player's hand. The room may
|
||||||
/// *or may not* be valid, yet.
|
/// *or may not* be valid, yet.
|
||||||
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
||||||
struct Card {
|
pub struct Card {
|
||||||
cells: [Cell; 9],
|
cells: [Cell; 9],
|
||||||
nw: bool,
|
nw: bool,
|
||||||
n: bool,
|
n: bool,
|
||||||
|
|||||||
Reference in New Issue
Block a user