コード例 #1
0
ファイル: Solution.cs プロジェクト: z93blom/adventofcode
 public void Equip(Mob mob)
 {
     Armor.Equip(mob);
     Weapon.Equip(mob);
     LeftRing.Equip(mob);
     RightRing.Equip(mob);
 }
コード例 #2
0
 public void CreateEffects(IEquipmentEffectFactory equipmentEffectFactory)
 {
     Head?.CreateEffect(equipmentEffectFactory);
     Body?.CreateEffect(equipmentEffectFactory);
     Boots?.CreateEffect(equipmentEffectFactory);
     Gloves?.CreateEffect(equipmentEffectFactory);
     LeftHand?.CreateEffect(equipmentEffectFactory);
     RightHand?.CreateEffect(equipmentEffectFactory);
     Neck?.CreateEffect(equipmentEffectFactory);
     LeftRing?.CreateEffect(equipmentEffectFactory);
     RightRing?.CreateEffect(equipmentEffectFactory);
 }