Esempio n. 1
0
        //add, replace, or remove tattoo.
        internal TattooDataChangedEventArgs(IBodyPart source, T location, TattooBase oldTattoo, TattooBase newTattoo, int newTattooCount)
        {
            parent = source ?? throw new ArgumentNullException(nameof(source));
            if (location == null)
            {
                throw new ArgumentNullException(nameof(location));
            }

            this.newTattooCount = newTattooCount;

            if (oldTattoo == null != (newTattoo == null))
            {
                if (oldTattoo == null)
                {
                    oldTattooCount = newTattooCount - 1;
                }
                else
                {
                    oldTattooCount = newTattooCount + 1;
                }
            }
            else
            {
                oldTattooCount = newTattooCount;
            }


            Dictionary <T, ValueDifference <TattooBase> > tatDiff = new Dictionary <T, ValueDifference <TattooBase> >
            {
                { location, new ValueDifference <TattooBase>(oldTattoo, newTattoo) }
            };
        }
Esempio n. 2
0
 //matching tattoos, but different colors.
 public bool MatchingHandTattooIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_HAND], this[ArmTattooLocation.RIGHT_HAND]));
 }
Esempio n. 3
0
 public bool MatchingWristTattoosIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_WRIST], this[ArmTattooLocation.RIGHT_WRIST]));
 }
Esempio n. 4
0
 public bool MatchingInnerForearmTattoosIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_INNER_FOREARM], this[ArmTattooLocation.RIGHT_INNER_FOREARM]));
 }
Esempio n. 5
0
 public bool MatchingOuterForearmTattoos()
 {
     return(TattooBase.MatchingTattoos(this[ArmTattooLocation.LEFT_OUTER_FOREARM], this[ArmTattooLocation.RIGHT_OUTER_FOREARM]));
 }
Esempio n. 6
0
 public bool MatchingUpperArmTattoosIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_UPPER_ARM], this[ArmTattooLocation.RIGHT_UPPER_ARM]));
 }
Esempio n. 7
0
 public bool MatchingShoulderTattoosIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_SHOULDER], this[ArmTattooLocation.RIGHT_SHOULDER]));
 }
Esempio n. 8
0
 public bool MatchingSleeveTattoosIgnoreColor()
 {
     return(TattooBase.MatchingTattoosIgnoreColor(this[ArmTattooLocation.LEFT_SLEEVE], this[ArmTattooLocation.RIGHT_SLEEVE]));
 }
Esempio n. 9
0
 public override bool EqualsIgnoreColor(TattooBase other)
 {
     return(other is RunicBodyTattoo);
 }