add flag to useraccount
This commit is contained in:
parent
54b8a36e08
commit
88efeb0c28
src/login
@ -4,6 +4,10 @@ use libpso::character::settings;
|
|||||||
use libpso::character::character;
|
use libpso::character::character;
|
||||||
use libpso::character::guildcard;
|
use libpso::character::guildcard;
|
||||||
|
|
||||||
|
pub const USERFLAG_NEWCHAR: u32 = 0x00000001;
|
||||||
|
pub const USERFLAG_DRESSINGROOM: u32 = 0x00000002;
|
||||||
|
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
pub struct UserAccount {
|
pub struct UserAccount {
|
||||||
pub id: u32,
|
pub id: u32,
|
||||||
pub username: String,
|
pub username: String,
|
||||||
@ -13,6 +17,7 @@ pub struct UserAccount {
|
|||||||
pub banned: bool,
|
pub banned: bool,
|
||||||
pub muted_until: SystemTime,
|
pub muted_until: SystemTime,
|
||||||
pub created_at: SystemTime,
|
pub created_at: SystemTime,
|
||||||
|
pub flags: u32, // TODO: is this used for anything other than character creation?
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct UserSettings {
|
pub struct UserSettings {
|
||||||
@ -21,6 +26,7 @@ pub struct UserSettings {
|
|||||||
pub settings: settings::UserSettings,
|
pub settings: settings::UserSettings,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct Character {
|
pub struct Character {
|
||||||
pub id: u32,
|
pub id: u32,
|
||||||
pub user_id: u32,
|
pub user_id: u32,
|
||||||
|
@ -169,6 +169,7 @@ mod test {
|
|||||||
banned: false,
|
banned: false,
|
||||||
muted_until: SystemTime::now(),
|
muted_until: SystemTime::now(),
|
||||||
created_at: SystemTime::now(),
|
created_at: SystemTime::now(),
|
||||||
|
flags: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -239,6 +240,7 @@ mod test {
|
|||||||
banned: false,
|
banned: false,
|
||||||
muted_until: SystemTime::now(),
|
muted_until: SystemTime::now(),
|
||||||
created_at: SystemTime::now(),
|
created_at: SystemTime::now(),
|
||||||
|
flags: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user