stevenarella/src
ice_iix 46999f59bb Add protocol version global mutable to merge Metadata18/19 into one
Cleans up https://github.com/iceiix/steven/pull/57 1.8.9 (47) multiprotocol support
which added too much code duplication, Metadata19 vs Metadata18, and
different packets for each, the only difference being how it was parsed.

Instead, switch back to using only one Metadata implementation, but with
parsing conditionalized on a new global mutable: SUPPORTED_PROTOCOL_VERSION.
Accessing global mutable state is unsafe but it is only set when
initializing the connection, and only read when deep enough in the code
where it is not feasible to pass otherwise. More elegant, worth it.
2018-12-11 18:18:25 -08:00
..
console Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
ecs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
entity Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
gl Use glutin to replace sdl2 (#35) 2018-11-30 11:35:35 -08:00
model Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
nbt 1.12.2 protocol support (340) (#40) 2018-12-02 19:37:41 -08:00
protocol Add protocol version global mutable to merge Metadata18/19 into one 2018-12-11 18:18:25 -08:00
render Use glutin to replace sdl2 (#35) 2018-11-30 11:35:35 -08:00
screen Multiprotocol support: 1.12.2 and 1.11.2 (#54) 2018-12-03 14:22:47 -08:00
server Add protocol version global mutable to merge Metadata18/19 into one 2018-12-11 18:18:25 -08:00
types Add protocol version global mutable to merge Metadata18/19 into one 2018-12-11 18:18:25 -08:00
ui Fix backspace not deleting in textfields, but shows ⌂. Closes https://github.com/iceiix/steven/issues/55 2018-12-04 15:51:20 -08:00
world 1.8.9 (47) multiprotocol support (#57) 2018-12-09 12:03:55 -08:00
auth.rs Update to use crate:: for current crate, for Rust 2018 edition 2018-11-04 12:06:00 -08:00
chunk_builder.rs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
format.rs Recognize translate text components, instead of showing "UNHANDLED" 2018-12-02 19:25:11 -08:00
item.rs Update to use crate:: for current crate, for Rust 2018 edition 2018-11-04 12:06:00 -08:00
macros.rs Base implementation for worlds/blocks 2016-03-18 22:24:30 +00:00
main.rs Multiprotocol support: 1.12.2 and 1.11.2 (#54) 2018-12-03 14:22:47 -08:00
resources.rs 1.12.2 protocol support (340) (#40) 2018-12-02 19:37:41 -08:00
settings.rs Use glutin to replace sdl2 (#35) 2018-11-30 11:35:35 -08:00