add default language constant for packets
This commit is contained in:
parent
fed7cf0272
commit
dadaf27765
|
@ -1,9 +1,11 @@
|
||||||
use crate::text::LanguageError;
|
use crate::text::{Language, LanguageError};
|
||||||
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
|
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
pub mod quest;
|
pub mod quest;
|
||||||
|
|
||||||
|
pub const PACKET_DEFAULT_LANGUAGE: Language = Language::English;
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum PacketError {
|
pub enum PacketError {
|
||||||
#[error("Packet ID {0} is wrong for this packet type")]
|
#[error("Packet ID {0} is wrong for this packet type")]
|
||||||
|
|
Loading…
Reference in a new issue