mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-30 18:37:45 +00:00
Move CharacterMode enum to common_spawn module
This commit is contained in:
parent
cfb9aad6e6
commit
da0860cdd7
3 changed files with 15 additions and 14 deletions
|
@ -3,8 +3,8 @@ use binrw::binrw;
|
|||
use crate::CHAR_NAME_MAX_LENGTH;
|
||||
use crate::common::{CustomizeData, read_string, write_string};
|
||||
|
||||
use super::StatusEffect;
|
||||
use super::position::Position;
|
||||
use super::{CharacterMode, StatusEffect};
|
||||
|
||||
#[binrw]
|
||||
#[brw(repr = u8)]
|
||||
|
@ -30,6 +30,17 @@ pub enum ObjectKind {
|
|||
CardStand = 16,
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
#[brw(repr = u8)]
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
pub enum CharacterMode {
|
||||
None = 0x0,
|
||||
#[default]
|
||||
Normal = 0x1,
|
||||
Dead = 0x2,
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
|
|
|
@ -9,7 +9,6 @@ pub use social_list::SocialListRequest;
|
|||
pub use social_list::SocialListRequestType;
|
||||
|
||||
mod player_spawn;
|
||||
pub use player_spawn::CharacterMode;
|
||||
pub use player_spawn::PlayerSpawn;
|
||||
|
||||
mod position;
|
||||
|
@ -38,7 +37,7 @@ mod npc_spawn;
|
|||
pub use npc_spawn::NpcSpawn;
|
||||
|
||||
mod common_spawn;
|
||||
pub use common_spawn::{CommonSpawn, ObjectKind};
|
||||
pub use common_spawn::{CharacterMode, CommonSpawn, ObjectKind};
|
||||
|
||||
use crate::common::read_string;
|
||||
use crate::common::write_string;
|
||||
|
|
|
@ -7,17 +7,6 @@ use super::position::Position;
|
|||
use super::status_effect::StatusEffect;
|
||||
use super::{CommonSpawn, ObjectKind};
|
||||
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
#[brw(repr = u8)]
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
pub enum CharacterMode {
|
||||
None = 0x0,
|
||||
#[default]
|
||||
Normal = 0x1,
|
||||
Dead = 0x2,
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
|
@ -39,6 +28,8 @@ mod tests {
|
|||
|
||||
use binrw::BinRead;
|
||||
|
||||
use crate::world::ipc::CharacterMode;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Reference in a new issue