WeatherChangeEvent. C Interface.

This commit is contained in:
Deukhoofd committed 2020-04-26 20:12:31 +02:00
1 parent 718c146ebe
commit 686f898259
2 files changed
+10

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#include "../../src/Battling/EventHooks/WeatherChangeEvent.hpp"
#include "../Core.hpp"
using namespace PkmnLib::Battling;
export void PkmnLib_WeatherChangeEvent_Destruct(WeatherChangeEvent* p) { delete p; }
export const char* PkmnLib_WeatherChangeEvent_GetWeatherName(WeatherChangeEvent* p) {
return p->GetWeatherName().c_str();
}
@@ -14,6 +14,8 @@ namespace PkmnLib::Battling {
[[nodiscard]] CreatureLib::Battling::EventDataKind GetKind() const noexcept override {
return static_cast<CreatureLib::Battling::EventDataKind>(PkmnEventDataKind::WeatherChange);
}
const Arbutils::CaseInsensitiveConstString GetWeatherName() const noexcept { return _weatherName; }
};
}