public BattleModel() { modelType = new ModelType(); skeletons = new Skeletons(); modelScale = new ModelScale(); modelIRange = new ModelIRange(); texture = new List <Texture>(); modelFlexi = new List <ModelFlexi>(); modelSprite = new List <ModelSprite>(); modelTri = new ModelTri(); }
public override int GetHashCode() { int hash = 1; if (PokemonId != 0) { hash ^= PokemonId.GetHashCode(); } if (ModelScale != 0F) { hash ^= ModelScale.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Type2 != 0) { hash ^= Type2.GetHashCode(); } if (camera_ != null) { hash ^= Camera.GetHashCode(); } if (encounter_ != null) { hash ^= Encounter.GetHashCode(); } if (stats_ != null) { hash ^= Stats.GetHashCode(); } hash ^= quickMoves_.GetHashCode(); hash ^= cinematicMoves_.GetHashCode(); hash ^= animationTime_.GetHashCode(); hash ^= evolutionIds_.GetHashCode(); if (EvolutionPips != 0) { hash ^= EvolutionPips.GetHashCode(); } if (Rarity != 0) { hash ^= Rarity.GetHashCode(); } if (PokedexHeightM != 0F) { hash ^= PokedexHeightM.GetHashCode(); } if (PokedexWeightKg != 0F) { hash ^= PokedexWeightKg.GetHashCode(); } if (ParentPokemonId != 0) { hash ^= ParentPokemonId.GetHashCode(); } if (HeightStdDev != 0F) { hash ^= HeightStdDev.GetHashCode(); } if (WeightStdDev != 0F) { hash ^= WeightStdDev.GetHashCode(); } if (KmDistanceToHatch != 0F) { hash ^= KmDistanceToHatch.GetHashCode(); } if (FamilyId != 0) { hash ^= FamilyId.GetHashCode(); } if (CandyToEvolve != 0) { hash ^= CandyToEvolve.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (PokemonId != global::POGOProtos.Enums.PokemonId.Missingno) { hash ^= PokemonId.GetHashCode(); } if (ModelScale != 0F) { hash ^= ModelScale.GetHashCode(); } if (Type != global::POGOProtos.Enums.PokemonType.None) { hash ^= Type.GetHashCode(); } if (Type2 != global::POGOProtos.Enums.PokemonType.None) { hash ^= Type2.GetHashCode(); } if (camera_ != null) { hash ^= Camera.GetHashCode(); } if (encounter_ != null) { hash ^= Encounter.GetHashCode(); } if (stats_ != null) { hash ^= Stats.GetHashCode(); } hash ^= quickMoves_.GetHashCode(); hash ^= cinematicMoves_.GetHashCode(); hash ^= animationTime_.GetHashCode(); hash ^= evolutionIds_.GetHashCode(); if (EvolutionPips != 0) { hash ^= EvolutionPips.GetHashCode(); } if (Rarity != global::POGOProtos.Enums.PokemonRarity.Normal) { hash ^= Rarity.GetHashCode(); } if (PokedexHeightM != 0F) { hash ^= PokedexHeightM.GetHashCode(); } if (PokedexWeightKg != 0F) { hash ^= PokedexWeightKg.GetHashCode(); } if (ParentPokemonId != global::POGOProtos.Enums.PokemonId.Missingno) { hash ^= ParentPokemonId.GetHashCode(); } if (HeightStdDev != 0F) { hash ^= HeightStdDev.GetHashCode(); } if (WeightStdDev != 0F) { hash ^= WeightStdDev.GetHashCode(); } if (KmDistanceToHatch != 0F) { hash ^= KmDistanceToHatch.GetHashCode(); } if (FamilyId != global::POGOProtos.Enums.PokemonFamilyId.FamilyUnset) { hash ^= FamilyId.GetHashCode(); } if (CandyToEvolve != 0) { hash ^= CandyToEvolve.GetHashCode(); } if (KmBuddyDistance != 0F) { hash ^= KmBuddyDistance.GetHashCode(); } if (BuddySize != global::POGOProtos.Settings.Master.PokemonSettings.Types.BuddySize.BUDDY_MEDIUM) { hash ^= BuddySize.GetHashCode(); } return(hash); }