PkmnLib/CInterface/Battling/EventHooks.cpp

18 lines
804 B
C++
Raw Normal View History

2022-03-26 15:23:24 +00:00
#include "../../src/Battling/EventHooks/CaptureAttemptEvent.hpp"
2020-04-26 18:12:31 +00:00
#include "../../src/Battling/EventHooks/WeatherChangeEvent.hpp"
#include "../Core.hpp"
using namespace PkmnLib::Battling;
2022-04-02 11:03:11 +00:00
export_func void PkmnLib_WeatherChangeEvent_Destruct(WeatherChangeEvent* p) { delete p; }
export_func const char* PkmnLib_WeatherChangeEvent_GetWeatherName(WeatherChangeEvent* p) {
2020-04-26 18:12:31 +00:00
return p->GetWeatherName().c_str();
2022-03-26 15:23:24 +00:00
}
2022-04-02 11:03:11 +00:00
export_func void PkmnLib_CaptureAttemptEvent_Destruct(CaptureAttemptEvent* p) { delete p; }
export_func const PkmnLib::Battling::Pokemon* PkmnLib_CaptureAttemptEvent_GetPokemon(CaptureAttemptEvent* p) {
2022-03-26 15:23:24 +00:00
return p->GetPokemon();
}
2022-04-02 11:03:11 +00:00
export_func const PkmnLib::Battling::CaptureLibrary::CaptureResult
2022-03-26 15:23:24 +00:00
PkmnLib_CaptureAttemptEvent_GetResult(CaptureAttemptEvent* p) {
return p->GetResult();
2020-04-26 18:12:31 +00:00
}