This commit is contained in:
2026-02-26 19:18:33 -05:00
parent 17eaf3e324
commit 54eb7d4261
11 changed files with 169 additions and 22 deletions
+12 -1
View File
@@ -1,8 +1,19 @@
use openworm::net::UserId;
use crate::net::NetHandle;
use crate::{net::NetHandle, ui::UserCache};
pub struct Session {
pub con: NetHandle,
pub user_id: UserId,
pub cache: UserCache,
}
impl Session {
pub fn new(con: NetHandle, user_id: UserId) -> Self {
Self {
cache: UserCache::new(con.clone()),
con,
user_id,
}
}
}