2021-11-27 09:37:12 +00:00
|
|
|
#include "../../src/Library/CreatureData/Talent.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace CreatureLib::Library;
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func Talent* CreatureLib_Talent_Construct(const char* name, const char* effect,
|
|
|
|
EffectParameter* effectParameters[], size_t effectParameterCount) {
|
2021-11-27 09:37:12 +00:00
|
|
|
ArbUt::List<EffectParameter*> effectParameterList(effectParameterCount);
|
|
|
|
for (size_t i = 0; i < effectParameterCount; i++) {
|
|
|
|
effectParameterList.Append(effectParameters[i]);
|
|
|
|
}
|
|
|
|
return new Talent(ArbUt::StringView(name), ArbUt::StringView(effect), effectParameterList);
|
|
|
|
}
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func void CreatureLib_Talent_Destruct(const Talent* p) { delete p; }
|
2021-11-27 09:37:12 +00:00
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const char* CreatureLib_Talent_GetName(const Talent* talent) { return talent->GetName().c_str(); }
|
2021-11-27 09:37:12 +00:00
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const char* CreatureLib_Talent_GetEffect(const Talent* talent) { return talent->GetEffect().c_str(); }
|