public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (FamilyXp != 0) { hash ^= FamilyXp.GetHashCode(); } if (FamilyLevel != 0) { hash ^= FamilyLevel.GetHashCode(); } if (RewardsCollectedLevel != 0) { hash ^= RewardsCollectedLevel.GetHashCode(); } if (CurrentChestsOpened != 0) { hash ^= CurrentChestsOpened.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public static string familyLevel2Str(Util.Resource resource, FamilyLevel level) { switch (level) { case FamilyLevel.LOW: return resource.getMsg("family_level_low"); case FamilyLevel.MEDIUM: return resource.getMsg("family_level_medium"); case FamilyLevel.HIGH: return resource.getMsg("family_level_high"); default: return resource.getMsg("family_level_medium"); } }
public override int GetHashCode() { int hash = 1; if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } if (FamilyLevel != 0) { hash ^= FamilyLevel.GetHashCode(); } if (ComparisonOperator != 0) { hash ^= ComparisonOperator.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (FamilyLevel != 0) { hash ^= FamilyLevel.GetHashCode(); } hash ^= chestReward_.GetHashCode(); if (FamilyXp != 0) { hash ^= FamilyXp.GetHashCode(); } if (CurrentChestsOpened != 0) { hash ^= CurrentChestsOpened.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }