added game type
This commit is contained in:
@@ -6,18 +6,23 @@ use std::{
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{types::link::Link, utils::walk_all_files};
|
||||
use crate::{
|
||||
types::{GameType, link::Link},
|
||||
utils::walk_all_files,
|
||||
};
|
||||
|
||||
/// Available game
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
pub struct Game {
|
||||
path: PathBuf,
|
||||
kind: GameType,
|
||||
}
|
||||
|
||||
impl Game {
|
||||
pub fn new(path: impl AsRef<Path>) -> Self {
|
||||
Self {
|
||||
path: path.as_ref().to_owned(),
|
||||
kind: GameType::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user