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-06-27 20:51:49 +0200
commit4489a89fdec9f4a507400150af34623899b64f46 (patch)
tree442c2c06ec3c06598d86e28c0745ecbbc5dc2feb /src/Bindings/LuaState.h
parentRemoved cWebPlugin, WebAdmin uses cLuaState::cCallback. (diff)
downloadcuberite-4489a89fdec9f4a507400150af34623899b64f46.tar
cuberite-4489a89fdec9f4a507400150af34623899b64f46.tar.gz
cuberite-4489a89fdec9f4a507400150af34623899b64f46.tar.bz2
cuberite-4489a89fdec9f4a507400150af34623899b64f46.tar.lz
cuberite-4489a89fdec9f4a507400150af34623899b64f46.tar.xz
cuberite-4489a89fdec9f4a507400150af34623899b64f46.tar.zst
cuberite-4489a89fdec9f4a507400150af34623899b64f46.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 bce08f0fe..a3f15dcc9 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);