Make PACKET_ID public
This commit is contained in:
@@ -14,7 +14,7 @@ pub trait PacketId {
|
|||||||
macro_rules! set_packet_id (
|
macro_rules! set_packet_id (
|
||||||
($type: ident, $id: expr) => (
|
($type: ident, $id: expr) => (
|
||||||
impl $type {
|
impl $type {
|
||||||
const PACKET_ID: u8 = $id;
|
pub const PACKET_ID: u8 = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PacketId for $type {
|
impl PacketId for $type {
|
||||||
|
Reference in New Issue
Block a user