This commit is contained in:
@@ -8,6 +8,8 @@ void PkmnLib::Battling::Battle::SetWeather(const ArbUt::StringView& name) {
|
||||
_eventHook.Trigger<WeatherChangeEvent>(name);
|
||||
}
|
||||
void PkmnLib::Battling::Battle::ClearWeather() {
|
||||
if (_weatherScript == nullptr)
|
||||
return;
|
||||
_weatherScript->OnRemove();
|
||||
_weatherScript = nullptr;
|
||||
_eventHook.Trigger<WeatherChangeEvent>(""_cnc);
|
||||
|
||||
@@ -17,10 +17,6 @@ namespace PkmnLib::Library {
|
||||
return CreatureLib::Library::ItemLibrary::Get(name).ForceAs<const Item>();
|
||||
}
|
||||
inline ArbUt::BorrowedPtr<const Item> operator[](const ArbUt::BasicStringView& name) const { return Get(name); }
|
||||
|
||||
void Insert(const ArbUt::StringView& name, const Item* item) {
|
||||
CreatureLib::Library::ItemLibrary::Insert(name, item);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -26,10 +26,6 @@ namespace PkmnLib::Library {
|
||||
return Get(name);
|
||||
}
|
||||
|
||||
void Insert(const ArbUt::StringView& name, const PokemonSpecies* species) {
|
||||
CreatureLib::Library::SpeciesLibrary::Insert(name, species);
|
||||
}
|
||||
|
||||
ArbUt::BorrowedPtr<const PokemonSpecies>
|
||||
FindPreEvolution(const ArbUt::BorrowedPtr<const PokemonSpecies>& species) const noexcept;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user