/* * This file is part of sdbclient * Copyright (C) 2022 Jonni Liljamo * * Licensed under GPL-3.0-only. * See LICENSE for licensing information. */ use bevy::prelude::*; /// Various settings that can be changed from the... Settings. #[derive(Resource, Debug, Component, PartialEq, Clone)] pub struct CfgSettings { /// Master Volume pub volume_master: u32, /// Fulsscreen pub fullscreen: bool, /// Resolution pub resolution: (f32, f32), } /// User details and status #[derive(Resource, Debug, Component, PartialEq, Clone)] pub struct CfgUser { /// User logged in status pub logged_in: bool, /// User Token pub user_token: String, } /// Settings that the user has no access to, or can only access through developer settings #[derive(Resource, Debug, Component, PartialEq, Clone)] pub struct CfgHidden { /// API Server pub api_server: String, }