@@ 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,