Files
PkmnLib/src/Battling/EventHooks/WeatherChangeEvent.hpp
Deukhoofd fff926b617
All checks were successful
continuous-integration/drone/push Build is passing
Mark several classes as final for devirtualization performance benefits.
2020-10-15 18:13:00 +02:00

22 lines
777 B
C++

#ifndef PKMNLIB_WEATHERCHANGEEVENT_HPP
#define PKMNLIB_WEATHERCHANGEEVENT_HPP
#include <CreatureLib/Battling/EventHooks/Events/EventData.hpp>
#include "PkmnEventKind.hpp"
namespace PkmnLib::Battling {
class WeatherChangeEvent final : public CreatureLib::Battling::EventData {
ArbUt::StringView _weatherName;
public:
explicit WeatherChangeEvent(const ArbUt::StringView& name) : _weatherName(name) {}
[[nodiscard]] CreatureLib::Battling::EventDataKind GetKind() const noexcept override {
return static_cast<CreatureLib::Battling::EventDataKind>(PkmnEventDataKind::WeatherChange);
}
const ArbUt::StringView& GetWeatherName() const noexcept { return _weatherName; }
};
}
#endif // PKMNLIB_WEATHERCHANGEEVENT_HPP