public override int GetHashCode() { int hash = 1; if (RaidSeed != 0L) { hash ^= RaidSeed.GetHashCode(); } if (StartedMs != 0L) { hash ^= StartedMs.GetHashCode(); } if (CompletedMs != 0L) { hash ^= CompletedMs.GetHashCode(); } if (EncounterPokemonId != 0) { hash ^= EncounterPokemonId.GetHashCode(); } if (CompletedBattle != false) { hash ^= CompletedBattle.GetHashCode(); } if (ReceivedRewards != false) { hash ^= ReceivedRewards.GetHashCode(); } if (FinishedEncounter != false) { hash ^= FinishedEncounter.GetHashCode(); } return(hash); }
public void MergeFrom(ClaimPotionResponse other) { if (other == null) { return; } if (other.Result != 0) { Result = other.Result; } if (other.receivedRewards_ != null) { if (receivedRewards_ == null) { ReceivedRewards = new global::WUProtos.Data.Loot.LootCollection(); } ReceivedRewards.MergeFrom(other.ReceivedRewards); } if (other.remainingRewards_ != null) { if (remainingRewards_ == null) { RemainingRewards = new global::WUProtos.Data.Loot.LootCollection(); } RemainingRewards.MergeFrom(other.RemainingRewards); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public bool RewardReceived(int rewardID) { if (ReceivedRewards.Contains(rewardID)) { return(true); } else { return(false); } }
public override int GetHashCode() { int hash = 1; if (lobby_ != null) { hash ^= Lobby.GetHashCode(); } if (raidBattle_ != null) { hash ^= RaidBattle.GetHashCode(); } if (PlayerCanJoinLobby != false) { hash ^= PlayerCanJoinLobby.GetHashCode(); } if (Result != 0) { hash ^= Result.GetHashCode(); } if (raidInfo_ != null) { hash ^= RaidInfo.GetHashCode(); } if (TicketUsed != false) { hash ^= TicketUsed.GetHashCode(); } if (FreeTicketAvailable != false) { hash ^= FreeTicketAvailable.GetHashCode(); } if (ThrowsRemaining != 0) { hash ^= ThrowsRemaining.GetHashCode(); } if (ReceivedRewards != false) { hash ^= ReceivedRewards.GetHashCode(); } if (NumPlayersInLobby != 0) { hash ^= NumPlayersInLobby.GetHashCode(); } if (ServerMs != 0L) { hash ^= ServerMs.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private bool StoreReward(int id) { bool stored = false; if (ReceivedRewards.Contains(id)) { return(stored); } else { ReceivedRewards.Add(id); stored = true; return(stored); } }
public override int GetHashCode() { int hash = 1; if (RaidSeed != 0L) { hash ^= RaidSeed.GetHashCode(); } if (StartedMs != 0L) { hash ^= StartedMs.GetHashCode(); } if (CompletedMs != 0L) { hash ^= CompletedMs.GetHashCode(); } if (EncounterPokemonId != 0) { hash ^= EncounterPokemonId.GetHashCode(); } if (CompletedBattle != false) { hash ^= CompletedBattle.GetHashCode(); } if (ReceivedRewards != false) { hash ^= ReceivedRewards.GetHashCode(); } if (FinishedEncounter != false) { hash ^= FinishedEncounter.GetHashCode(); } if (ReceivedDefaultRewards != false) { hash ^= ReceivedDefaultRewards.GetHashCode(); } if (IncrementedRaidFriends != false) { hash ^= IncrementedRaidFriends.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Result != 0) { hash ^= Result.GetHashCode(); } if (receivedRewards_ != null) { hash ^= ReceivedRewards.GetHashCode(); } if (remainingRewards_ != null) { hash ^= RemainingRewards.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }