26 lines
621 B
Rust
26 lines
621 B
Rust
use std::time::{Duration};
|
|
use bincode::{Encode, Decode};
|
|
|
|
// `HotbarItem` structure converted to Rust.
|
|
#[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, Default)]
|
|
pub(crate) struct Skill {
|
|
id: u16,
|
|
level: u8,
|
|
}
|
|
|
|
// `StatusEffect` structure converted to Rust.
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode, Default)]
|
|
pub(crate) struct StatusEffect {
|
|
expired: Duration,
|
|
value: u16,
|
|
unknown: u16,
|
|
dt: Duration,
|
|
}
|