Inventory changes that modify the loadout now go through a control action instead of a control event.

This commit is contained in:
Sam
2021-02-06 21:15:29 -05:00
parent bcc9c2058c
commit 8eebcdfcd2
8 changed files with 42 additions and 27 deletions

View File

@ -268,6 +268,10 @@ impl<'a> System<'a> for Sys {
};
local_emitter.append(&mut state_update.local_events);
server_emitter.append(&mut state_update.server_events);
if let Some(ref inv_manip) = state_update.modify_loadout {
// TODO: Delete this clone, somehow...
server_emitter.emit(ServerEvent::InventoryManip(j.entity, inv_manip.clone()));
}
incorporate_update(&mut tuple, state_update);
}