Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MapAbilityGmtId.Length != 0)
            {
                hash ^= MapAbilityGmtId.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.PlayerNickname)
            {
                hash ^= PlayerNickname.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.MapCoordinate)
            {
                hash ^= MapCoordinate.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.MobId)
            {
                hash ^= MobId.GetHashCode();
            }
            hash ^= (int)targetCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MapAbilityGmtId.Length != 0)
            {
                hash ^= MapAbilityGmtId.GetHashCode();
            }
            if (MapAbilityLevel != 0)
            {
                hash ^= MapAbilityLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }