physis/layer/pop.rs
1// SPDX-FileCopyrightText: 2025 Joshua Goins <josh@redstrate.com>
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4use binrw::binread;
5
6use super::common::RelativePositions;
7
8#[binread]
9#[brw(repr = i32)]
10#[derive(Debug, PartialEq)]
11pub enum PopType {
12 PC = 0x1,
13 Npc = 0x2,
14 Content = 0x3,
15}
16
17#[binread]
18#[derive(Debug)]
19#[br(little)]
20pub struct PopRangeInstanceObject {
21 pub pop_type: PopType,
22 pub relative_positions: RelativePositions,
23 pub inner_radius_ratio: f32,
24 pub index: u8,
25 padding1: [u8; 3],
26 padding2: u32,
27 // TODO: read relative positions
28}