DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

77d69bb2897192b87480515379d699ad87b852cc — Jonni Liljamo 1 year, 9 months ago 0f37644
feat(server): recieve tick buffer messages
1 files changed, 2 insertions(+), 2 deletions(-)

M server/src/systems/event/mod.rs
M server/src/systems/event/mod.rs => server/src/systems/event/mod.rs +2 -2
@@ 94,11 94,11 @@ pub(crate) fn error_events(mut ev: EventReader<ErrorEvent>) {
pub(crate) fn tick_events(mut ev: EventReader<TickEvent>, mut server: Server) {
    let mut has_ticked = false;

    for TickEvent(_server_tick) in ev.iter() {
    for TickEvent(server_tick) in ev.iter() {
        has_ticked = true;

        // Handle messages coming from clients
        //let messages = server.receive_tick_buffer_messages(server_tick);
        let _messages = server.receive_tick_buffer_messages(server_tick);
    }

    if has_ticked {