mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 03:37:47 +00:00
Make more layer-related types public
This commit is contained in:
parent
bf0fb97d7c
commit
3273070cef
1 changed files with 20 additions and 20 deletions
|
@ -69,7 +69,7 @@ pub use trigger_box::TriggerBoxShape;
|
||||||
#[brw(repr = i32)]
|
#[brw(repr = i32)]
|
||||||
#[repr(i32)]
|
#[repr(i32)]
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
enum LayerEntryType {
|
pub enum LayerEntryType {
|
||||||
AssetNone = 00,
|
AssetNone = 00,
|
||||||
BG = 0x1,
|
BG = 0x1,
|
||||||
Attribute = 0x2,
|
Attribute = 0x2,
|
||||||
|
@ -158,7 +158,7 @@ enum LayerEntryType {
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(import(magic: &LayerEntryType))]
|
#[br(import(magic: &LayerEntryType))]
|
||||||
enum LayerEntryData {
|
pub enum LayerEntryData {
|
||||||
#[br(pre_assert(*magic == LayerEntryType::BG))]
|
#[br(pre_assert(*magic == LayerEntryType::BG))]
|
||||||
BG(BGInstanceObject),
|
BG(BGInstanceObject),
|
||||||
#[br(pre_assert(*magic == LayerEntryType::LayLight))]
|
#[br(pre_assert(*magic == LayerEntryType::LayLight))]
|
||||||
|
@ -222,7 +222,7 @@ enum LayerEntryData {
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct VFXInstanceObject {
|
pub struct VFXInstanceObject {
|
||||||
asset_path_offset: u32,
|
asset_path_offset: u32,
|
||||||
soft_particle_fade_range: f32,
|
soft_particle_fade_range: f32,
|
||||||
padding: u32,
|
padding: u32,
|
||||||
|
@ -242,7 +242,7 @@ struct VFXInstanceObject {
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct GatheringInstanceObject {
|
pub struct GatheringInstanceObject {
|
||||||
gathering_point_id: u32,
|
gathering_point_id: u32,
|
||||||
padding: u32,
|
padding: u32,
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,7 @@ struct GatheringInstanceObject {
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct TreasureInstanceObject {
|
pub struct TreasureInstanceObject {
|
||||||
nonpop_init_zone: u8,
|
nonpop_init_zone: u8,
|
||||||
padding1: [u8; 3],
|
padding1: [u8; 3],
|
||||||
padding2: [u32; 2],
|
padding2: [u32; 2],
|
||||||
|
@ -260,72 +260,72 @@ struct TreasureInstanceObject {
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct MapRangeInstanceObject {}
|
pub struct MapRangeInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct EventInstanceObject {}
|
pub struct EventInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct EnvLocationObject {}
|
pub struct EnvLocationObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct EventRangeInstanceObject {}
|
pub struct EventRangeInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct QuestMarkerInstanceObject {}
|
pub struct QuestMarkerInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct CollisionBoxInstanceObject {}
|
pub struct CollisionBoxInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct LineVFXInstanceObject {}
|
pub struct LineVFXInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct ClientPathInstanceObject {}
|
pub struct ClientPathInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct ServerPathInstanceObject {}
|
pub struct ServerPathInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct GimmickRangeInstanceObject {}
|
pub struct GimmickRangeInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct TargetMarkerInstanceObject {}
|
pub struct TargetMarkerInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct ChairMarkerInstanceObject {}
|
pub struct ChairMarkerInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct PrefetchRangeInstanceObject {}
|
pub struct PrefetchRangeInstanceObject {}
|
||||||
|
|
||||||
#[binread]
|
#[binread]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
struct FateRangeInstanceObject {}
|
pub struct FateRangeInstanceObject {}
|
||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(repr = i32)]
|
#[brw(repr = i32)]
|
||||||
|
@ -438,7 +438,7 @@ struct LayerChunk {
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
#[br(import(start: u64))]
|
#[br(import(start: u64))]
|
||||||
#[allow(dead_code)] // most of the fields are unused at the moment
|
#[allow(dead_code)] // most of the fields are unused at the moment
|
||||||
struct InstanceObject {
|
pub struct InstanceObject {
|
||||||
asset_type: LayerEntryType,
|
asset_type: LayerEntryType,
|
||||||
pub instance_id: u32,
|
pub instance_id: u32,
|
||||||
#[br(parse_with = string_from_offset, args(start))]
|
#[br(parse_with = string_from_offset, args(start))]
|
||||||
|
|
Loading…
Add table
Reference in a new issue