Transitioned buff storage from a vec to a hashmap. Addressed other comments. Only continuous buff effects are handled right now.

This commit is contained in:
Sam
2020-10-24 15:12:37 -05:00
parent 337cf6e137
commit f60985d733
14 changed files with 257 additions and 408 deletions

View File

@ -86,7 +86,7 @@ impl<'a> System<'a> for Sys {
ControlEvent::RemoveBuff(buff_id) => {
server_emitter.emit(ServerEvent::Buff {
uid: *uid,
buff_change: BuffChange::RemoveFromClient(buff_id),
buff_change: BuffChange::RemoveFromController(buff_id),
});
},
ControlEvent::Unmount => server_emitter.emit(ServerEvent::Unmount(entity)),