DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

cd13a21de8afaeb58dfe76d723ed8c7201edb5e0 — skye 1 year, 5 months ago b530d5c
feat(client): init game status and parsing system
3 files changed, 32 insertions(+), 0 deletions(-)

A client/src/game_status/mod.rs
A client/src/game_status/parser.rs
M client/src/main.rs
A client/src/game_status/mod.rs => client/src/game_status/mod.rs +22 -0
@@ 0,0 1,22 @@
/*
 * This file is part of laurelin_client
 * Copyright (C) 2023 Jonni Liljamo <jonni@liljamo.com>
 *
 * Licensed under GPL-3.0-only.
 * See LICENSE for licensing information.
 */

use crate::api::game::Action;

mod parser;

/// constructed from a vector of [`Action`]s
pub struct GameStatus {

}

impl GameStatus {
    pub fn new(actions: Vec<Action>) -> Self {
        Self { }
    }
}

A client/src/game_status/parser.rs => client/src/game_status/parser.rs +8 -0
@@ 0,0 1,8 @@
/*
 * This file is part of laurelin_client
 * Copyright (C) 2023 Jonni Liljamo <jonni@liljamo.com>
 *
 * Licensed under GPL-3.0-only.
 * See LICENSE for licensing information.
 */


M client/src/main.rs => client/src/main.rs +2 -0
@@ 17,6 17,8 @@ mod util;

mod plugins;

mod game_status;

#[derive(Debug, Clone, PartialEq, Eq, Hash, Default, States)]
enum AppState {
    #[default]