Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions core/src/ipc/zone/server/apartment_list.rs
Original file line number Diff line number Diff line change
@@ -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},
};

Expand Down Expand Up @@ -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::<u8>)]
#[bw(map = write_bool_as::<u8>)]
#[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],
Expand Down
Loading