add default language constant for packets

This commit is contained in:
Gered 2021-11-24 21:01:39 -05:00
parent fed7cf0272
commit dadaf27765

View file

@ -1,9 +1,11 @@
use crate::text::LanguageError;
use crate::text::{Language, LanguageError};
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use thiserror::Error;
pub mod quest;
pub const PACKET_DEFAULT_LANGUAGE: Language = Language::English;
#[derive(Error, Debug)]
pub enum PacketError {
#[error("Packet ID {0} is wrong for this packet type")]