コード例 #1
0
ファイル: Battle.cs プロジェクト: a3562351/FightForMoney
        public override int GetHashCode()
        {
            int hash = 1;

            if (EntityId != 0)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (pos_ != null)
            {
                hash ^= Pos.GetHashCode();
            }
            if (face_ != null)
            {
                hash ^= Face.GetHashCode();
            }
            if (SkillId != 0)
            {
                hash ^= SkillId.GetHashCode();
            }
            if (TargetId != 0)
            {
                hash ^= TargetId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Desc.Length != 0)
            {
                hash ^= Desc.GetHashCode();
            }
            if (IsOpen != false)
            {
                hash ^= IsOpen.GetHashCode();
            }
            if (SkillId.Length != 0)
            {
                hash ^= SkillId.GetHashCode();
            }
            if (HeroId.Length != 0)
            {
                hash ^= HeroId.GetHashCode();
            }
            hash ^= levelDesc_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(UserId.GetHashCode()
            ^ SkillId.GetHashCode());
 }
コード例 #4
0
 public override int GetHashCode()
 {
     return(SkillId != null?SkillId.GetHashCode() : 0);
 }
コード例 #5
0
 public override int GetHashCode()
 {
     return(OfferId.GetHashCode() + SkillId.GetHashCode());
 }