Add C Interface for Variants count.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-08 19:08:24 +02:00
parent 15100f3cd5
commit fb56d0920d
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ export Gender CreatureLib_CreatureSpecies_GetRandomGender(CreatureSpecies* p, Ar
return p->GetRandomGender(*random);
}
export size_t CreatureLib_CreatureSpecies_GetVariantsCount(CreatureSpecies* p) {
return p->GetVariantsIterator().Count();
}
export const SpeciesVariant* const* CreatureLib_CreatureSpecies_GetVariants(CreatureSpecies* p) {
return reinterpret_cast<const SpeciesVariant* const*>(p->GetVariantsIterator().RawData());
}