- fix: character service to compile issues with new packet structure
This commit is contained in:
@@ -2,21 +2,21 @@ use std::time::{Duration};
|
||||
use bincode::{Encode, Decode};
|
||||
|
||||
// `HotbarItem` structure converted to Rust.
|
||||
#[derive(Debug, Clone, Copy, Encode, Decode)]
|
||||
#[derive(Debug, Clone, Copy, Encode, Decode, Default)]
|
||||
pub(crate) struct HotbarItem {
|
||||
type_: u8,
|
||||
slot_id: u16,
|
||||
}
|
||||
|
||||
// `Skill` structure converted to Rust.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode, Default)]
|
||||
pub(crate) struct Skill {
|
||||
id: u16,
|
||||
level: u8,
|
||||
}
|
||||
|
||||
// `StatusEffect` structure converted to Rust.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode, Default)]
|
||||
pub(crate) struct StatusEffect {
|
||||
expired: Duration,
|
||||
value: u16,
|
||||
|
||||
Reference in New Issue
Block a user