1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Complete bare minimum to seem logged in

This commit is contained in:
NGnius (Graham)
2025-03-01 16:22:57 -05:00
parent fe30e783ad
commit 7e31f6fe1d
55 changed files with 1147 additions and 81 deletions

View File

@@ -50,3 +50,21 @@ pub enum ClanType {
Open = 1,
Closed = 2,
}
pub struct ClanInfo {
pub clan_name: String,
pub clan_description: String,
pub clan_type: ClanType,
pub clan_size: i32,
}
impl ClanInfo {
pub fn as_transmissible(&self) -> Typed {
Typed::HashMap(vec![
(Typed::Str("clanName".into()), Typed::Str(self.clan_name.clone().into())),
(Typed::Str("clanDescription".into()), Typed::Str(self.clan_description.clone().into())),
(Typed::Str("clanType".into()), Typed::Int(self.clan_type as i32)),
(Typed::Str("clanSize".into()), Typed::Int(self.clan_size)),
].into())
}
}