DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

a932d2c4ddf0354bfd18e2496cd02a70b687309c — Jonni Liljamo 2 years ago 975ea67
Serde for Cfg structs
1 files changed, 3 insertions(+), 3 deletions(-)

M sdbclient/src/cfg/mod.rs
M sdbclient/src/cfg/mod.rs => sdbclient/src/cfg/mod.rs +3 -3
@@ 13,7 13,7 @@ use bevy::prelude::*;
pub struct CfgDirs(pub directories::ProjectDirs);

/// Various settings that can be changed from the... Settings.
#[derive(Resource, Debug, Component, PartialEq, Clone)]
#[derive(Serialize, Deserialize, Resource, Debug, Component, PartialEq, Clone)]
pub struct CfgSettings {
    /// Master Volume
    pub volume_master: u32,


@@ 24,7 24,7 @@ pub struct CfgSettings {
}

/// User details and status
#[derive(Resource, Debug, Component, PartialEq, Clone)]
#[derive(Serialize, Deserialize, Resource, Debug, Component, PartialEq, Clone)]
pub struct CfgUser {
    /// User logged in status
    pub logged_in: bool,


@@ 39,7 39,7 @@ pub struct CfgUser {
}

/// Settings that the user has no access to, or can only access through developer settings
#[derive(Resource, Debug, Component, PartialEq, Clone)]
#[derive(Serialize, Deserialize, Resource, Debug, Component, PartialEq, Clone)]
pub struct CfgHidden {
    /// API Server
    pub api_server: String,