DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

975ea6799fec6b39d0626f49f822be8695d1f1e4 — Jonni Liljamo 2 years ago 921127e
New CfgUser fields
2 files changed, 9 insertions(+), 0 deletions(-)

M sdbclient/src/cfg/mod.rs
M sdbclient/src/main.rs
M sdbclient/src/cfg/mod.rs => sdbclient/src/cfg/mod.rs +6 -0
@@ 30,6 30,12 @@ pub struct CfgUser {
    pub logged_in: bool,
    /// User Token
    pub user_token: String,
    /// User ID
    pub id: String,
    /// Username
    pub username: String,
    /// User email
    pub email: String,
}

/// Settings that the user has no access to, or can only access through developer settings

M sdbclient/src/main.rs => sdbclient/src/main.rs +3 -0
@@ 91,6 91,9 @@ fn main() {
    .insert_resource(cfg::CfgUser {
        logged_in: false,
        user_token: "".to_string(),
        id: "".to_string(),
        username: "".to_string(),
        email: "".to_string(),
    })
    .insert_resource(cfg::CfgHidden {
        api_server: "http://localhost:8080/api".to_string(),