diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp index 220232d..5cb91d6 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -100,6 +100,10 @@ void RegisterBattleClass::RegisterBattle(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("Battle", "bool get_CanFlee() const property", asMETHOD(PkmnLib::Battling::Battle, CanFlee), asCALL_THISCALL); Ensure(r >= 0); + r = engine->RegisterObjectMethod("Battle", "uint get_CurrentTurn() const property", + asMETHOD(PkmnLib::Battling::Battle, GetCurrentTurn), asCALL_THISCALL); + Ensure(r >= 0); + r = engine->RegisterObjectMethod("Battle", "BattleRandom@ get_Random() const property", asMETHOD(PkmnLib::Battling::Battle, GetRandom), asCALL_THISCALL); Ensure(r >= 0);