Skip to content

Commit

Permalink
Add copy and clone semantics to types
Browse files Browse the repository at this point in the history
  • Loading branch information
camchenry committed Mar 6, 2020
1 parent fa478dc commit ec4ad27
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/types.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use std::str::FromStr;

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct BuildSettings {
pub output_directory: String,
pub ignore_list: Vec<String>,
pub exclude_default_ignore_list: bool,
}

#[derive(Debug, Clone)]
pub struct Project {
pub title: String, // Ex: "My Super Awesome Game"
pub package_name: String, // Ex: "super_game"
Expand All @@ -21,21 +22,21 @@ pub struct Project {
}

/// Represents an operating system or other platform/environment.
#[derive(Debug, Copy)]
#[derive(Debug, Copy, Clone)]
pub enum Platform {
Windows,
MacOs,
}

/// Represents a CPU architecture
#[derive(Debug, Copy)]
#[derive(Debug, Copy, Clone)]
pub enum Bitness {
X86, // 32 bit
X64, // 64 bit
}

/// Represents a specific version of LÖVE2D
#[derive(Debug, Copy)]
#[derive(Debug, Copy, Clone)]
pub enum LoveVersion {
V11_3,
V11_2,
Expand Down

0 comments on commit ec4ad27

Please sign in to comment.