add comments

This commit is contained in:
Adam Whitehurst 2020-10-24 13:17:49 -07:00 committed by Sam
parent f60985d733
commit 8aad7adab8

View File

@ -172,8 +172,11 @@ pub enum BuffSource {
/// would be probably an undesired effect).
#[derive(Clone, Debug, Serialize, Deserialize, Default)]
pub struct Buffs {
/// Uid used for synchronization
id_counter: u64,
/// Maps Kinds of buff to Id's of currently applied buffs of that kind
pub kinds: HashMap<BuffKind, Vec<BuffId>>,
// All currently applied buffs stored by Id
pub buffs: HashMap<BuffId, Buff>,
}