From 65d0d19b1616e5867afdf9d9f1c68972d2c3f2b0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Nov 2011 23:20:14 +0000 Subject: (svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick --- src/script/squirrel.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/squirrel.hpp') diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp index 1ada519cc..69e01e647 100644 --- a/src/script/squirrel.hpp +++ b/src/script/squirrel.hpp @@ -253,6 +253,11 @@ public: * Are we allowed to suspend the squirrel script at this moment? */ bool CanSuspend(); + + /** + * How many operations can we execute till suspension? + */ + SQInteger GetOpsTillSuspend(); }; #endif /* SQUIRREL_HPP */ -- cgit v1.2.3-54-g00ecf