Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if PlayerTexture instances are equal
        /// </summary>
        /// <param name="other">Instance of PlayerTexture to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PlayerTexture other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     SKIN == other.SKIN ||
                     SKIN != null &&
                     SKIN.Equals(other.SKIN)
                     ) &&
                 (
                     CAPE == other.CAPE ||
                     CAPE != null &&
                     CAPE.Equals(other.CAPE)
                 ));
        }