Adds C Interface for destructor of different growthrates.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-05-06 11:36:56 +02:00
parent 3a9e55aae5
commit 5cd5059e42
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 0 deletions

View File

@ -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_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) {
Try(out = p->CalculateLevel(experience);)