Add C Interface for random seed.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
15db2b4ea0
commit
90c33bfef0
|
@ -4,9 +4,10 @@ using namespace PkmnLib::Battling;
|
|||
|
||||
export uint8_t PkmnLib_Battle_Construct(Battle*& out, const BattleLibrary* library,
|
||||
CreatureLib::Battling::BattleParty* const* parties, size_t partiesCount,
|
||||
bool canFlee, uint8_t numberOfSides, uint8_t creaturesPerSide) {
|
||||
bool canFlee, uint8_t numberOfSides, uint8_t creaturesPerSide,
|
||||
uint_fast32_t randomSeed) {
|
||||
ArbUt::List<CreatureLib::Battling::BattleParty*> partiesList(parties, parties + partiesCount);
|
||||
Try(out = new Battle(library, partiesList, canFlee, numberOfSides, creaturesPerSide));
|
||||
Try(out = new Battle(library, partiesList, canFlee, numberOfSides, creaturesPerSide, randomSeed));
|
||||
}
|
||||
|
||||
export void PkmnLib_Battle_Destruct(Battle* p) { delete p; }
|
||||
|
|
Loading…
Reference in New Issue