public bool Equals(DestinyItemInstanceEnergy input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     EnergyTypeHash == input.EnergyTypeHash ||
                     (EnergyTypeHash.Equals(input.EnergyTypeHash))
                     ) &&
                 (
                     EnergyType == input.EnergyType ||
                     (EnergyType != null && EnergyType.Equals(input.EnergyType))
                 ) &&
                 (
                     EnergyCapacity == input.EnergyCapacity ||
                     (EnergyCapacity.Equals(input.EnergyCapacity))
                 ) &&
                 (
                     EnergyUsed == input.EnergyUsed ||
                     (EnergyUsed.Equals(input.EnergyUsed))
                 ) &&
                 (
                     EnergyUnused == input.EnergyUnused ||
                     (EnergyUnused.Equals(input.EnergyUnused))
                 ));
        }
Exemplo n.º 2
0
        public bool Equals(DestinyEnergyCapacityEntry input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     CapacityValue == input.CapacityValue ||
                     (CapacityValue.Equals(input.CapacityValue))
                     ) &&
                 (
                     EnergyTypeHash == input.EnergyTypeHash ||
                     (EnergyTypeHash.Equals(input.EnergyTypeHash))
                 ) &&
                 (
                     EnergyType == input.EnergyType ||
                     (EnergyType != null && EnergyType.Equals(input.EnergyType))
                 ));
        }
Exemplo n.º 3
0
        public bool Equals(DestinyEnergyCostEntry input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     EnergyCost == input.EnergyCost ||
                     (EnergyCost.Equals(input.EnergyCost))
                     ) &&
                 (
                     EnergyTypeHash == input.EnergyTypeHash ||
                     (EnergyTypeHash.Equals(input.EnergyTypeHash))
                 ) &&
                 (
                     EnergyType == input.EnergyType ||
                     (EnergyType != null && EnergyType.Equals(input.EnergyType))
                 ));
        }