Files
osirose-new/packet-service/src/enums.rs
raven e5c961d1b4 - add: utils library
- add: packet-service to handle game client packets
- fix: health check for database-service
- fix: health check for auth-service
2024-12-09 23:10:26 -05:00

115 lines
1.9 KiB
Rust

#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum BulletType {
Arrow = 0,
Bullet = 1,
Throw = 2,
MaxBulletTypes,
}
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum RidingItem {
Body = 0,
Engine = 1,
Legs,
Option, // weapon or back seat
Arms,
MaxRidingItems,
}
#[repr(u16)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum ItemSubType {
Rring = 171,
Nnecklace,
Earring,
OneHSword = 211,
OneHBlunt,
TwoHSword = 221,
Spear = 222,
TwoHAxe = 223,
Bow = 231,
Gun,
Launcher,
Staff = 241,
Wand,
Katar = 251,
DualWield,
Xbow = 271,
}
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum EquippedPosition {
Goggles = 1,
Helmet = 2,
Armor,
Backpack,
Gauntlet,
Boots,
WeaponR,
WeaponL,
Necklace,
Ring,
Earing,
MaxEquipItems,
}
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum MoveMode {
Walk = 0,
Run = 1,
Drive = 2,
RideOn = 4,
}
#[repr(u16)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum Command {
Stop = 0,
Move = 1,
Attack = 2,
Die = 3,
Pickup = 4,
Skill2Self = 6,
Skill2Obj = 7,
Skill2Pos = 8,
Runaway = 0x8009,
Sit = 10,
}
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum ItemType {
None = 0,
ItemGoggles = 1,
ItemHelmet = 2,
ItemArmor = 3,
ItemGauntlet = 4,
ItemBoots = 5,
ItemBackpack = 6,
ItemRing = 7,
ItemWeaponR = 8,
ItemWeaponL = 9,
ItemConsumable = 10,
ItemEtcGem = 11,
ItemEtc = 12,
ItemEtc2 = 13,
ItemRiding = 14,
Zuly = 0x1F,
}
mod party_req {
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Request {
Make = 0,
Join = 1,
Left,
ChangeOwner,
Kick = 0x81,
}
}