static void LoadData() { weaponEffects = new List <ItemEffect>(); List <ItemEffectDto> weaponEffectDtos = GoogleSheets.Get <ItemEffectDto>(Folders.InCoreData("DnD - WeaponEffects.csv"), false); foreach (ItemEffectDto itemEffect in weaponEffectDtos) { WeaponEffects.Add(ItemEffect.From(itemEffect)); } }
public override void Update(GameTime gameTime) { foreach (WeaponEffect effect in WeaponEffects) { effect.Update(gameTime); } foreach (WeaponEffect effect in WeaponEffectsToRemove) { WeaponEffects.Remove(effect); } WeaponEffectsToRemove.Clear(); foreach (WeaponEffect effect in WeaponEffectsToAdd) { WeaponEffects.Add(effect); } WeaponEffectsToAdd.Clear(); }