Adds ChoiceQueue::HasNext() to Angelscript.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-11-19 16:18:40 +01:00
parent d1ba703f76
commit d59ee9d869
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ void RegisterBattleClass::RegisterChoiceQueue(asIScriptEngine* engine) {
r = engine->RegisterObjectMethod("ChoiceQueue", "const BaseTurnChoice@ Peek() const",
asMETHOD(CreatureLib::Battling::ChoiceQueue, Peek), asCALL_THISCALL);
Ensure(r >= 0);
r = engine->RegisterObjectMethod("ChoiceQueue", "bool HasNext() const",
asMETHOD(CreatureLib::Battling::ChoiceQueue, HasNext), asCALL_THISCALL);
Ensure(r >= 0);
}
void RegisterBattleClass::RegisterBattleRandom(asIScriptEngine* engine) {