public override int GetHashCode() { int hash = 1; if (BattleStartMs != 0L) { hash ^= BattleStartMs.GetHashCode(); } if (BattleEndMs != 0L) { hash ^= BattleEndMs.GetHashCode(); } if (BattleId.Length != 0) { hash ^= BattleId.GetHashCode(); } if (defender_ != null) { hash ^= Defender.GetHashCode(); } if (battleLog_ != null) { hash ^= BattleLog.GetHashCode(); } if (attacker_ != null) { hash ^= Attacker.GetHashCode(); } return(hash); }
public void Serialize(NetDataWriter writer) { writer.Put((byte)Type); writer.Put(BattleId.ToString()); writer.Put(CurrentArmyId); writer.Put(CurrentUnitId); }
public void Serialize(NetDataWriter writer) { writer.Put((byte)Type); writer.Put(BattleId.ToString()); writer.Put(ArmyId); writer.Put(IsReady); }
public override int GetHashCode() { int hash = 1; if (GymId.Length != 0) { hash ^= GymId.GetHashCode(); } if (BattleId.Length != 0) { hash ^= BattleId.GetHashCode(); } hash ^= attackActions_.GetHashCode(); if (lastRetrievedAction_ != null) { hash ^= LastRetrievedAction.GetHashCode(); } if (PlayerLatDegrees != 0D) { hash ^= PlayerLatDegrees.GetHashCode(); } if (PlayerLngDegrees != 0D) { hash ^= PlayerLngDegrees.GetHashCode(); } if (TimestampMs != 0L) { hash ^= TimestampMs.GetHashCode(); } return(hash); }
public void Serialize(NetDataWriter writer) { writer.Put((byte)Type); writer.Put(BattleId.ToString()); writer.Put(RequesterArmyId); writer.Put(RequesterUnitId); writer.Put(IsDefend); }
public override int GetHashCode() { int hash = 1; if (BattleStartMs != 0L) { hash ^= BattleStartMs.GetHashCode(); } if (BattleEndMs != 0L) { hash ^= BattleEndMs.GetHashCode(); } if (BattleId.Length != 0) { hash ^= BattleId.GetHashCode(); } if (defender_ != null) { hash ^= Defender.GetHashCode(); } if (battleLog_ != null) { hash ^= BattleLog.GetHashCode(); } if (attacker_ != null) { hash ^= Attacker.GetHashCode(); } if (WeatherCondition != 0) { hash ^= WeatherCondition.GetHashCode(); } if (HighestFriendshipMilestone != 0) { hash ^= HighestFriendshipMilestone.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (BattleId != 0L) { hash ^= BattleId.GetHashCode(); } if (BattleParameterId != 0) { hash ^= BattleParameterId.GetHashCode(); } if (BattleRewardId != 0) { hash ^= BattleRewardId.GetHashCode(); } if (BaseLevel != 0) { hash ^= BaseLevel.GetHashCode(); } if (U5 != 0) { hash ^= U5.GetHashCode(); } if (BattleBgmId.Length != 0) { hash ^= BattleBgmId.GetHashCode(); } if (ResultBgmId.Length != 0) { hash ^= ResultBgmId.GetHashCode(); } if (U8 != 0) { hash ^= U8.GetHashCode(); } if (U9 != 0) { hash ^= U9.GetHashCode(); } if (U10 != 0) { hash ^= U10.GetHashCode(); } if (U11 != 0) { hash ^= U11.GetHashCode(); } if (DeckPresetGroupId != 0) { hash ^= DeckPresetGroupId.GetHashCode(); } if (U13 != 0) { hash ^= U13.GetHashCode(); } if (U14 != 0) { hash ^= U14.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(BattleId.GetHashCode() ^ ChunkXIndex ^ ChunkYIndex); }