Adds C Interface for destructor of different growthrates.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3a9e55aae5
commit
5cd5059e42
|
@ -15,6 +15,8 @@ export uint8_t CreatureLib_ExternGrowthRate_Construct(GrowthRate*& out, uint8_t
|
||||||
};
|
};
|
||||||
|
|
||||||
export void CreatureLib_GrowthRate_Destruct(const GrowthRate* p) { delete p; }
|
export void CreatureLib_GrowthRate_Destruct(const GrowthRate* p) { delete p; }
|
||||||
|
export void CreatureLib_LookupGrowthRate_Destruct(const LookupGrowthRate* p) { delete p; }
|
||||||
|
export void CreatureLib_ExternGrowthRate_Destruct(const ExternGrowthRate* p) { delete p; }
|
||||||
|
|
||||||
export uint8_t CreatureLib_GrowthRate_CalculateLevel(uint8_t& out, const GrowthRate* p, uint32_t experience) {
|
export uint8_t CreatureLib_GrowthRate_CalculateLevel(uint8_t& out, const GrowthRate* p, uint32_t experience) {
|
||||||
Try(out = p->CalculateLevel(experience);)
|
Try(out = p->CalculateLevel(experience);)
|
||||||
|
|
Loading…
Reference in New Issue