From d59ee9d86900f8b43b3c3def9fc7075e88a85d95 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 19 Nov 2021 16:18:40 +0100 Subject: [PATCH] Adds ChoiceQueue::HasNext() to Angelscript. --- .../AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp index a8386a7..56a5f5d 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -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) {