Пример #1
0
        public override int GetHashCode()
        {
            int num = 1;

            if (EventType != 0)
            {
                num ^= EventType.GetHashCode();
            }
            if (EventId != 0)
            {
                num ^= EventId.GetHashCode();
            }
            if (parentEventId_.HasValue)
            {
                num ^= ParentEventId.GetHashCode();
            }
            if (Int1 != 0)
            {
                num ^= Int1.GetHashCode();
            }
            if (Int2 != 0)
            {
                num ^= Int2.GetHashCode();
            }
            if (Int3 != 0)
            {
                num ^= Int3.GetHashCode();
            }
            if (Int4 != 0)
            {
                num ^= Int4.GetHashCode();
            }
            if (Int5 != 0)
            {
                num ^= Int5.GetHashCode();
            }
            if (Int6 != 0)
            {
                num ^= Int6.GetHashCode();
            }
            if (Int7 != 0)
            {
                num ^= Int7.GetHashCode();
            }
            if (String1.Length != 0)
            {
                num ^= String1.GetHashCode();
            }
            if (Bool1)
            {
                num ^= Bool1.GetHashCode();
            }
            if (cellCoord1_ != null)
            {
                num ^= CellCoord1.GetHashCode();
            }
            if (cellCoord2_ != null)
            {
                num ^= CellCoord2.GetHashCode();
            }
            if (CompanionReserveState1 != 0)
            {
                num ^= CompanionReserveState1.GetHashCode();
            }
            if (CompanionReserveState2 != 0)
            {
                num ^= CompanionReserveState2.GetHashCode();
            }
            if (DamageReductionType1 != 0)
            {
                num ^= DamageReductionType1.GetHashCode();
            }
            if (FightResult1 != 0)
            {
                num ^= FightResult1.GetHashCode();
            }
            if (gameStatistics1_ != null)
            {
                num ^= GameStatistics1.GetHashCode();
            }
            if (TeamsScoreModificationReason1 != 0)
            {
                num ^= TeamsScoreModificationReason1.GetHashCode();
            }
            if (optInt1_.HasValue)
            {
                num ^= OptInt1.GetHashCode();
            }
            if (optInt2_.HasValue)
            {
                num ^= OptInt2.GetHashCode();
            }
            if (optInt3_.HasValue)
            {
                num ^= OptInt3.GetHashCode();
            }
            if (optInt4_.HasValue)
            {
                num ^= OptInt4.GetHashCode();
            }
            num ^= ((object)cellCoordList1_).GetHashCode();
            num ^= ((object)spellMovementList1_).GetHashCode();
            num ^= ((object)castTargetList1_).GetHashCode();
            num ^= ((object)intList1_).GetHashCode();
            num ^= ((object)intList2_).GetHashCode();
            if (_unknownFields != null)
            {
                num ^= ((object)_unknownFields).GetHashCode();
            }
            return(num);
        }
Пример #2
0
 public void MergeFrom(FightEventData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.EventType != 0)
     {
         EventType = other.EventType;
     }
     if (other.EventId != 0)
     {
         EventId = other.EventId;
     }
     if (other.parentEventId_.HasValue && (!parentEventId_.HasValue || other.ParentEventId != 0))
     {
         ParentEventId = other.ParentEventId;
     }
     if (other.Int1 != 0)
     {
         Int1 = other.Int1;
     }
     if (other.Int2 != 0)
     {
         Int2 = other.Int2;
     }
     if (other.Int3 != 0)
     {
         Int3 = other.Int3;
     }
     if (other.Int4 != 0)
     {
         Int4 = other.Int4;
     }
     if (other.Int5 != 0)
     {
         Int5 = other.Int5;
     }
     if (other.Int6 != 0)
     {
         Int6 = other.Int6;
     }
     if (other.Int7 != 0)
     {
         Int7 = other.Int7;
     }
     if (other.String1.Length != 0)
     {
         String1 = other.String1;
     }
     if (other.Bool1)
     {
         Bool1 = other.Bool1;
     }
     if (other.cellCoord1_ != null)
     {
         if (cellCoord1_ == null)
         {
             cellCoord1_ = new CellCoord();
         }
         CellCoord1.MergeFrom(other.CellCoord1);
     }
     if (other.cellCoord2_ != null)
     {
         if (cellCoord2_ == null)
         {
             cellCoord2_ = new CellCoord();
         }
         CellCoord2.MergeFrom(other.CellCoord2);
     }
     if (other.CompanionReserveState1 != 0)
     {
         CompanionReserveState1 = other.CompanionReserveState1;
     }
     if (other.CompanionReserveState2 != 0)
     {
         CompanionReserveState2 = other.CompanionReserveState2;
     }
     if (other.DamageReductionType1 != 0)
     {
         DamageReductionType1 = other.DamageReductionType1;
     }
     if (other.FightResult1 != 0)
     {
         FightResult1 = other.FightResult1;
     }
     if (other.gameStatistics1_ != null)
     {
         if (gameStatistics1_ == null)
         {
             gameStatistics1_ = new GameStatistics();
         }
         GameStatistics1.MergeFrom(other.GameStatistics1);
     }
     if (other.TeamsScoreModificationReason1 != 0)
     {
         TeamsScoreModificationReason1 = other.TeamsScoreModificationReason1;
     }
     if (other.optInt1_.HasValue && (!optInt1_.HasValue || other.OptInt1 != 0))
     {
         OptInt1 = other.OptInt1;
     }
     if (other.optInt2_.HasValue && (!optInt2_.HasValue || other.OptInt2 != 0))
     {
         OptInt2 = other.OptInt2;
     }
     if (other.optInt3_.HasValue && (!optInt3_.HasValue || other.OptInt3 != 0))
     {
         OptInt3 = other.OptInt3;
     }
     if (other.optInt4_.HasValue && (!optInt4_.HasValue || other.OptInt4 != 0))
     {
         OptInt4 = other.OptInt4;
     }
     cellCoordList1_.Add((IEnumerable <CellCoord>)other.cellCoordList1_);
     spellMovementList1_.Add((IEnumerable <SpellMovement>)other.spellMovementList1_);
     castTargetList1_.Add((IEnumerable <CastTarget>)other.castTargetList1_);
     intList1_.Add((IEnumerable <int>)other.intList1_);
     intList2_.Add((IEnumerable <int>)other.intList2_);
     _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }