Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Died != false)
            {
                hash ^= Died.GetHashCode();
            }
            if (Respawned != false)
            {
                hash ^= Respawned.GetHashCode();
            }
            if (decision_ != null)
            {
                hash ^= Decision.GetHashCode();
            }
            hash ^= path_.GetHashCode();
            if (HatChanged != false)
            {
                hash ^= HatChanged.GetHashCode();
            }
            if (ClothesChanged != false)
            {
                hash ^= ClothesChanged.GetHashCode();
            }
            if (ShoesChanged != false)
            {
                hash ^= ShoesChanged.GetHashCode();
            }
            if (WeaponChanged != false)
            {
                hash ^= WeaponChanged.GetHashCode();
            }
            if (AccessoryChanged != false)
            {
                hash ^= AccessoryChanged.GetHashCode();
            }
            hash ^= attackLocations_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + Id.GetHashCode();
            hash = hash * 23 + Name.GetHashCode();
            hash = hash * 23 + Culture.GetHashCode();
            hash = hash * 23 + Titles.GetHashCode();
            hash = hash * 23 + OtherTitles.GetHashCode();
            hash = hash * 23 + Aliases.GetHashCode();
            hash = hash * 23 + Born.GetHashCode();
            hash = hash * 23 + Died.GetHashCode();
            hash = hash * 23 + Father.GetHashCode();
            hash = hash * 23 + Mother.GetHashCode();
            hash = hash * 23 + Spouse.GetHashCode();
            hash = hash * 23 + Children.GetHashCode();
            hash = hash * 23 + Allegiances.GetHashCode();
            hash = hash * 23 + Books.GetHashCode();
            hash = hash * 23 + PovBooks.GetHashCode();
            hash = hash * 23 + PlayedBy.GetHashCode();
            hash = hash * 23 + TvSeries.GetHashCode();

            return(hash);
        }