public void Update(EntityInformation entityInformation, AbnormalityStorage abnormals) { EnduranceAbnormality.Items.Clear(); if (entityInformation == null) { return; } if (entityInformation.Interval == 0) { return; } EnduranceAbnormality.Items.Add(_header); var count = 0; foreach (var abnormality in abnormals.Get(entityInformation.Entity)) { EnduranceDebuff abnormalityUi; if (_enduranceDebuffsList.Count > count) { abnormalityUi = _enduranceDebuffsList[count]; } else { abnormalityUi = new EnduranceDebuff(); _enduranceDebuffsList.Add(abnormalityUi); } abnormalityUi.Update(abnormality.Key, abnormality.Value, entityInformation.BeginTime, entityInformation.EndTime); EnduranceAbnormality.Items.Add(abnormalityUi); count++; } }
public Buff(PlayerDamageDealt playerDamageDealt, PlayerAbnormals buffs, EntityInformation entityInformation) { InitializeComponent(); _header = new EnduranceDebuffHeader(); ContentWidth = 1020; EnduranceAbnormality.Items.Clear(); EnduranceAbnormality.Items.Add(_header); var counter = 0; foreach (var abnormality in buffs.Times.Where(x => x.Value.Duration(playerDamageDealt.BeginTime, playerDamageDealt.EndTime) > 0)) { EnduranceDebuff abnormalityUi; if (_enduranceDebuffsList.Count > counter) { abnormalityUi = _enduranceDebuffsList[counter]; } else { abnormalityUi = new EnduranceDebuff(); _enduranceDebuffsList.Add(abnormalityUi); } abnormalityUi.Update(abnormality.Key, abnormality.Value, playerDamageDealt.BeginTime, playerDamageDealt.EndTime); EnduranceAbnormality.Items.Add(abnormalityUi); counter++; } }
public void Update(EntityInformation entityInformation, AbnormalityStorage abnormals) { EnduranceAbnormality.Items.Clear(); if (entityInformation == null) { return; } if (entityInformation.Interval == 0) { return; } EnduranceAbnormality.Items.Add(_header); var count = 0; foreach (var abnormality in abnormals.Get(entityInformation.Entity)) { EnduranceDebuff abnormalityUi; if (_enduranceDebuffsList.Count > count) { abnormalityUi = _enduranceDebuffsList[count]; } else { abnormalityUi = new EnduranceDebuff(); _enduranceDebuffsList.Add(abnormalityUi); } abnormalityUi.Update(abnormality.Key, abnormality.Value, entityInformation.BeginTime, entityInformation.EndTime); EnduranceAbnormality.Items.Add(abnormalityUi); count++; } }
public void Update(Dictionary <Entity, EntityInfo> stats, AbnormalityStorage abnormals, Entity currentBoss) { var entity = currentBoss; EnduranceAbnormality.Items.Clear(); if (entity == null) { return; } var statsAbnormalities = stats[entity]; if (statsAbnormalities.Interval == 0 || entity.NpcE == null) { return; } EnduranceAbnormality.Items.Add(_header); var count = 0; foreach (var abnormality in abnormals.Get(entity.NpcE)) { EnduranceDebuff abnormalityUi; if (_enduranceDebuffsList.Count > count) { abnormalityUi = _enduranceDebuffsList[count]; } else { abnormalityUi = new EnduranceDebuff(); _enduranceDebuffsList.Add(abnormalityUi); } abnormalityUi.Update(abnormality.Key, abnormality.Value, statsAbnormalities.FirstHit / TimeSpan.TicksPerSecond, statsAbnormalities.LastHit / TimeSpan.TicksPerSecond); EnduranceAbnormality.Items.Add(abnormalityUi); count++; } }
public void Update(Dictionary <Entity, EntityInfo> stats) { var entity = NetworkController.Instance.Encounter; EnduranceAbnormality.Items.Clear(); if (entity == null) { return; } var statsAbnormalities = stats[entity]; if (statsAbnormalities.Interval == 0) { return; } EnduranceAbnormality.Items.Add(_header); var count = 0; foreach (var abnormality in statsAbnormalities.AbnormalityTime) { EnduranceDebuff abnormalityUi; if (_enduranceDebuffsList.Count > count) { abnormalityUi = _enduranceDebuffsList[count]; } else { abnormalityUi = new EnduranceDebuff(); _enduranceDebuffsList.Add(abnormalityUi); } abnormalityUi.Update(abnormality.Key, abnormality.Value, statsAbnormalities.FirstHit / TimeSpan.TicksPerSecond, statsAbnormalities.LastHit / TimeSpan.TicksPerSecond); EnduranceAbnormality.Items.Add(abnormalityUi); count++; } }