Base implementation for worlds/blocks

This commit is contained in:
Thinkofname 2016-03-18 22:24:30 +00:00
parent f4f0b71e79
commit ba1fe8e766
1 changed files with 0 additions and 23 deletions

View File

@ -34,29 +34,6 @@ use time;
pub const SUPPORTED_PROTOCOL: i32 = 74;
#[doc(hidden)]
macro_rules! create_ids {
($t:ty, ) => ();
($t:ty, prev($prev:ident), $name:ident) => (
#[allow(non_upper_case_globals)]
pub const $name: $t = $prev + 1;
);
($t:ty, prev($prev:ident), $name:ident, $($n:ident),+) => (
#[allow(non_upper_case_globals)]
pub const $name: $t = $prev + 1;
create_ids!($t, prev($name), $($n),+);
);
($t:ty, $name:ident, $($n:ident),+) => (
#[allow(non_upper_case_globals)]
pub const $name: $t = 0;
create_ids!($t, prev($name), $($n),+);
);
($t:ty, $name:ident) => (
#[allow(non_upper_case_globals)]
pub const $name: $t = 0;
);
}
/// Helper macro for defining packets
#[macro_export]