summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-03-02 10:12:43 +0100
committerMattes D <github@xoft.cz>2016-03-17 19:29:01 +0100
commiteb044e140e593c037976bacd56c5a50f133d3ba2 (patch)
treef6abe2a3a007cf1490f9c3f285abaef798d7e6cd /src/Bindings/LuaState.h
parentRemoved cWebPlugin, WebAdmin uses cLuaState::cCallback. (diff)
downloadcuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar.gz
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar.bz2
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar.lz
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar.xz
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.tar.zst
cuberite-eb044e140e593c037976bacd56c5a50f133d3ba2.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 63f419d2b..60a960ccc 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -155,6 +155,9 @@ public:
/** Frees the contained callback, if any. */
void Clear(void);
+ /** Returns true if the contained callback is valid. */
+ bool IsValid(void);
+
protected:
friend class cLuaState;
@@ -332,9 +335,10 @@ public:
// Enum values are checked for their allowed values and fail if the value is not assigned.
bool GetStackValue(int a_StackPos, AString & a_Value);
bool GetStackValue(int a_StackPos, bool & a_Value);
+ bool GetStackValue(int a_StackPos, cCallback & a_Callback);
+ bool GetStackValue(int a_StackPos, cCallbackPtr & a_Callback);
bool GetStackValue(int a_StackPos, cPluginManager::CommandResult & a_Result);
bool GetStackValue(int a_StackPos, cRef & a_Ref);
- bool GetStackValue(int a_StackPos, cCallback & a_Ref);
bool GetStackValue(int a_StackPos, double & a_Value);
bool GetStackValue(int a_StackPos, eBlockFace & a_Value);
bool GetStackValue(int a_StackPos, eWeather & a_Value);