Add C Interface for Variants count.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
15100f3cd5
commit
fb56d0920d
|
@ -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());
|
||||
}
|
Loading…
Reference in New Issue