summaryrefslogtreecommitdiff
path: root/src/script/script_info.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/script_info.hpp')
-rw-r--r--src/script/script_info.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/script/script_info.hpp b/src/script/script_info.hpp
index b686d53f4..4e59c7d72 100644
--- a/src/script/script_info.hpp
+++ b/src/script/script_info.hpp
@@ -17,6 +17,18 @@
#include "script_config.hpp"
+/** The maximum number of operations for saving or loading the data of a script. */
+static const int MAX_SL_OPS = 100000;
+/** The maximum number of operations for initial start of a script. */
+static const int MAX_CONSTRUCTOR_OPS = 100000;
+/** Number of operations to create an instance of a script. */
+static const int MAX_CREATEINSTANCE_OPS = 100000;
+/** Number of operations to get the author and similar information. */
+static const int MAX_GET_OPS = 1000;
+/** Maximum number of operations allowed for getting a particular setting. */
+static const int MAX_GET_SETTING_OPS = 100000;
+
+/** All static information from an Script like name, version, etc. */
class ScriptInfo : public SimpleCountedObject {
public:
ScriptInfo() :