Adds C Interface for EvolutionScript data.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
5a082c5995
commit
1620d51306
|
@ -1,4 +1,6 @@
|
|||
#include "../../src/Battling/PkmnScript.hpp"
|
||||
#include "../../src/Battling/EvolutionScript.hpp"
|
||||
#include "../../src/Battling/Pokemon/Pokemon.hpp"
|
||||
#include "../Core.hpp"
|
||||
using namespace PkmnLib::Battling;
|
||||
|
||||
|
@ -8,3 +10,9 @@ export uint8_t PkmnLib_PkmnScript_ModifyCriticalStage(PkmnScript* script,
|
|||
uint8_t* critStage) {
|
||||
Try(script->ModifyCriticalStage(attack, target, hit, critStage);)
|
||||
}
|
||||
|
||||
export u8 PkmnLib_EvolutionScript_DoesEvolveFromLevelUp(EvolutionScript* script,
|
||||
const PkmnLib::Library::EvolutionData* evoData,
|
||||
const Pokemon* pokemon, bool* out) {
|
||||
Try(script->DoesEvolveFromLevelUp(evoData, pokemon, out));
|
||||
}
|
Loading…
Reference in New Issue