From 1b773ad2c250e09c09c065eb3eec64bfebde09ca Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 18 May 2018 14:39:38 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9userdata=E5=88=9B=E5=BB=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/luaopen_types.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/script/luaopen_types.h') diff --git a/src/script/luaopen_types.h b/src/script/luaopen_types.h index 292d991..8c1f2a6 100644 --- a/src/script/luaopen_types.h +++ b/src/script/luaopen_types.h @@ -10,4 +10,16 @@ // audio module #define TYPE_SOUND "Sound" +class Proxy +{ +public: + inline void bind(void* obj) + { + if (obj != 0 && obj != nullptr) + object = obj; + } + + void* object; +}; + #endif -- cgit v1.1-26-g67d0