C interface for SpeciesVariant.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-02 14:01:56 +01:00
parent 0c1580ade6
commit 60cbc80549
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 0 deletions

View File

@ -43,5 +43,9 @@ export uint32_t CreatureLib_SpeciesVariant_GetStatistic(SpeciesVariant* p, Creat
} }
SIMPLE_GET_FUNC(SpeciesVariant, GetTalentCount, size_t); SIMPLE_GET_FUNC(SpeciesVariant, GetTalentCount, size_t);
SIMPLE_GET_FUNC(SpeciesVariant, GetSecretTalentCount, size_t); SIMPLE_GET_FUNC(SpeciesVariant, GetSecretTalentCount, size_t);
export uint8_t CreatureLib_SpeciesVariant_GetTalent(SpeciesVariant* p, bool secret, uint8_t index) {
return p->GetTalent(TalentIndex(secret, index));
}
SIMPLE_GET_FUNC(SpeciesVariant, GetLearnableAttacks, const LearnableAttacks*);
#undef SIMPLE_GET_FUNC #undef SIMPLE_GET_FUNC