aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/Proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/common/Proxy.h')
-rw-r--r--src/lua/common/Proxy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/common/Proxy.h b/src/lua/common/Proxy.h
index 8323ead..101fe9c 100644
--- a/src/lua/common/Proxy.h
+++ b/src/lua/common/Proxy.h
@@ -33,6 +33,13 @@ namespace lua
return *(Ref<T>*) reference;
}
+ template<class T>
+ T* getObject()
+ {
+ Ref<T>& ref = getRef<T>();
+ return ref.getObject();
+ }
+
const char* getObjectType()
{
return reference->type;