예제 #1
0
        private static bool Equals(IArmorPieceResistances x, IArmorPieceResistances y)
        {
            if (x == null || y == null)
            {
                return(false);
            }

            if (x.Fire != y.Fire)
            {
                return(false);
            }

            if (x.Water != y.Water)
            {
                return(false);
            }

            if (x.Thunder != y.Thunder)
            {
                return(false);
            }

            if (x.Ice != y.Ice)
            {
                return(false);
            }

            if (x.Dragon != y.Dragon)
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
 public ArmorPiece(
     int id,
     Dictionary <string, string> name,
     EquipmentType equipmentType,
     int rarity,
     int[] slots,
     IAbility[] abilities,
     IArmorSetSkill[] armorSetSkills,
     IArmorPieceDefense defense,
     IArmorPieceResistances resistances,
     IArmorPieceAttributes attributes,
     IArmorPieceAssets assets,
     IFullArmorSet fullArmorSet,
     IEvent evt
     )
 {
     Id             = id;
     Name           = name;
     Type           = equipmentType;
     Rarity         = rarity;
     Slots          = slots;
     Abilities      = abilities;
     ArmorSetSkills = armorSetSkills;
     Defense        = defense;
     Resistances    = resistances;
     Attributes     = attributes;
     Assets         = assets;
     FullArmorSet   = fullArmorSet;
     Event          = evt;
 }
예제 #3
0
 private ArmorPieceResistancesPrimitive ConvertResistances(IArmorPieceResistances resistances)
 {
     return(new ArmorPieceResistancesPrimitive
     {
         Fire = resistances.Fire,
         Water = resistances.Water,
         Thunder = resistances.Thunder,
         Ice = resistances.Ice,
         Dragon = resistances.Dragon
     });
 }