public void GenerateSummary_AddRaid(Old_RaidCollection_Raid _Raid) { Raid raid = null; if (m_Raids.TryGetValue(_Raid.UniqueRaidID, out raid) == false) { Raid newRaid = new Raid(_Raid); newRaid.InitCache(this); m_Raids.Add(newRaid.UniqueRaidID, newRaid); raid = newRaid; } try { var bossFights = _Raid.GetAllBossFights(Hidden._GlobalInitializationData.CachedGetFightDataCollectionFunc); raid.Update(_Raid, bossFights); } catch (Exception ex) { VF_RaidDamageDatabase.Logger.LogException(ex); } }
public void InitCache(Raid _Raid) { m_CacheRaid = _Raid; InitChildCache(); }