Exemplo n.º 1
0
 private bool ShouldProvide()
 {
     return(gender.Equals(GenderType.Male) &&
            energy > reserveEnergy * 2 &&
            partner != null &&
            partner.partner != null &&
            partner.partner.Equals(this) &&
            !partner.ShouldReproduce());
 }
Exemplo n.º 2
0
        public bool Equals(DestinyGenderDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GenderType == input.GenderType ||
                     (GenderType != null && GenderType.Equals(input.GenderType))
                     ) &&
                 (
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
Exemplo n.º 3
0
        public bool Equals(DestinyCharacterComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MembershipId == input.MembershipId ||
                     (MembershipId.Equals(input.MembershipId))
                     ) &&
                 (
                     MembershipType == input.MembershipType ||
                     (MembershipType != null && MembershipType.Equals(input.MembershipType))
                 ) &&
                 (
                     CharacterId == input.CharacterId ||
                     (CharacterId.Equals(input.CharacterId))
                 ) &&
                 (
                     DateLastPlayed == input.DateLastPlayed ||
                     (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed))
                 ) &&
                 (
                     MinutesPlayedThisSession == input.MinutesPlayedThisSession ||
                     (MinutesPlayedThisSession.Equals(input.MinutesPlayedThisSession))
                 ) &&
                 (
                     MinutesPlayedTotal == input.MinutesPlayedTotal ||
                     (MinutesPlayedTotal.Equals(input.MinutesPlayedTotal))
                 ) &&
                 (
                     Light == input.Light ||
                     (Light.Equals(input.Light))
                 ) &&
                 (
                     Stats == input.Stats ||
                     (Stats != null && Stats.SequenceEqual(input.Stats))
                 ) &&
                 (
                     RaceHash == input.RaceHash ||
                     (RaceHash.Equals(input.RaceHash))
                 ) &&
                 (
                     GenderHash == input.GenderHash ||
                     (GenderHash.Equals(input.GenderHash))
                 ) &&
                 (
                     ClassHash == input.ClassHash ||
                     (ClassHash.Equals(input.ClassHash))
                 ) &&
                 (
                     RaceType == input.RaceType ||
                     (RaceType != null && RaceType.Equals(input.RaceType))
                 ) &&
                 (
                     ClassType == input.ClassType ||
                     (ClassType != null && ClassType.Equals(input.ClassType))
                 ) &&
                 (
                     GenderType == input.GenderType ||
                     (GenderType != null && GenderType.Equals(input.GenderType))
                 ) &&
                 (
                     EmblemPath == input.EmblemPath ||
                     (EmblemPath != null && EmblemPath.Equals(input.EmblemPath))
                 ) &&
                 (
                     EmblemBackgroundPath == input.EmblemBackgroundPath ||
                     (EmblemBackgroundPath != null && EmblemBackgroundPath.Equals(input.EmblemBackgroundPath))
                 ) &&
                 (
                     EmblemHash == input.EmblemHash ||
                     (EmblemHash.Equals(input.EmblemHash))
                 ) &&
                 (
                     EmblemColor == input.EmblemColor ||
                     (EmblemColor != null && EmblemColor.Equals(input.EmblemColor))
                 ) &&
                 (
                     LevelProgression == input.LevelProgression ||
                     (LevelProgression != null && LevelProgression.Equals(input.LevelProgression))
                 ) &&
                 (
                     BaseCharacterLevel == input.BaseCharacterLevel ||
                     (BaseCharacterLevel.Equals(input.BaseCharacterLevel))
                 ) &&
                 (
                     PercentToNextLevel == input.PercentToNextLevel ||
                     (PercentToNextLevel.Equals(input.PercentToNextLevel))
                 ) &&
                 (
                     TitleRecordHash == input.TitleRecordHash ||
                     (TitleRecordHash.Equals(input.TitleRecordHash))
                 ));
        }