From 1184c6ee487e5b0e26c72b956a012c165e48ad55 Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 12 Apr 2026 23:29:53 -0400 Subject: [PATCH] Correct padding in ApartmentList --- core/src/ipc/zone/server/apartment_list.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/ipc/zone/server/apartment_list.rs b/core/src/ipc/zone/server/apartment_list.rs index 8304e58f..35b2c20c 100644 --- a/core/src/ipc/zone/server/apartment_list.rs +++ b/core/src/ipc/zone/server/apartment_list.rs @@ -1,7 +1,7 @@ use binrw::binrw; use crate::ipc::zone::{ - HousingAppealTag, + HousingAppealTag, OnlineStatusMask, server::{CHAR_NAME_MAX_LENGTH, read_bool_from, read_string, write_bool_as, write_string}, }; @@ -30,10 +30,14 @@ pub struct ApartmentList { #[binrw] #[derive(Clone, Debug, Default)] pub struct ApartmentListEntry { + /// The resident's online status. + pub resident_online_status_mask: OnlineStatusMask, + /// The resident's current zone id, if they're online. + pub resident_zone_id: u16, + pub unk: [u8; 2], /// If this resident allows visitors or not. #[br(map = read_bool_from::)] #[bw(map = write_bool_as::)] - #[brw(pad_before = 12)] // Seems to be empty/zeroes pub visitors_permitted: bool, /// The housing tags the resident has set for their apartment. It gives visitors an idea of what to expect when entering. pub housing_appeal: [HousingAppealTag; 3],