Add support for swapping in and out of a party.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-25 14:35:13 +02:00
parent 3f447a3e16
commit 8f921ce89b
2 changed files with 10 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ export uint8_t CreatureLib_CreatureParty_GetAtIndex(Creature*& out, const Creatu
export uint8_t CreatureLib_CreatureParty_Switch(CreatureParty* p, size_t a, size_t b) { Try(p->Switch(a, b);) }
export Creature* CreatureLib_CreatureParty_SwapInto(CreatureParty* p, size_t index, Creature* creature) {
return p->SwapInto(index, creature);
}
export bool CreatureLib_CreatureParty_HasAvailableCreatures(const CreatureParty* p) {
return p->HasAvailableCreatures();
}