@@ 8,12 8,13 @@
use bevy::prelude::*;
+use serde::{Deserialize, Serialize};
/// Stores a directories::ProjectDirs for easy access
#[derive(Resource, Debug, Component, Clone)]
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 25,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 40,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,