20 lines
1014 B
C++
20 lines
1014 B
C++
#include "../../src/Library/Natures/Nature.hpp"
|
|
#include "../Core.hpp"
|
|
using namespace PkmnLib::Library;
|
|
|
|
export_func Nature* PkmnLib_Nature_Construct(CreatureLib::Library::Statistic increasedStat,
|
|
CreatureLib::Library::Statistic decreasedStat, float increasedModifier,
|
|
float decreasedModifier) {
|
|
return new Nature(increasedStat, decreasedStat, increasedModifier, decreasedModifier);
|
|
}
|
|
export_func void PkmnLib_Nature_Destruct(const Nature* p) { delete p; }
|
|
|
|
SIMPLE_GET_FUNC(Nature, GetIncreaseModifier, float)
|
|
SIMPLE_GET_FUNC(Nature, GetDecreaseModifier, float)
|
|
SIMPLE_GET_FUNC(Nature, GetIncreasedStat, CreatureLib::Library::Statistic)
|
|
SIMPLE_GET_FUNC(Nature, GetDecreasedStat, CreatureLib::Library::Statistic)
|
|
|
|
export_func float PkmnLib_Nature_GetStatModifier(const PkmnLib::Library::Nature* nature,
|
|
CreatureLib::Library::Statistic stat) {
|
|
return nature->GetStatModifier(stat);
|
|
} |