/*
* This file is part of laurelin/client
* Copyright (C) 2023 Jonni Liljamo <jonni@liljamo.com>
*
* Licensed under GPL-3.0-only.
* See LICENSE for licensing information.
*/
use bevy::{
ecs::{reflect::ReflectResource, system::Resource},
reflect::Reflect,
};
mod ui;
pub use ui::*;
#[derive(Default, Resource, Reflect)]
#[reflect(Resource)]
pub struct ConnectScreenData {
pub state: ConnectState,
pub username: String,
pub email: String,
pub password: String,
pub password_confirm: String,
pub error: String,
}
#[derive(Default, PartialEq, Reflect)]
pub enum ConnectState {
#[default]
Login,
LoggingIn,
Register,
Registering,
}