summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaBind/LuaBindHelper.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-22 23:59:54 +0800
committerchai <chaifix@163.com>2021-10-22 23:59:54 +0800
commit4dafefe46a72ba47468b13d011f8299055081b0f (patch)
tree2a85835ec4d74fecf3815397b384cefe39d31f56 /Runtime/Lua/LuaBind/LuaBindHelper.h
parent1f18d2afec632aa9361079ca3bcb5a7f2d73db3a (diff)
*LuaBind
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindHelper.h')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindHelper.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindHelper.h b/Runtime/Lua/LuaBind/LuaBindHelper.h
new file mode 100644
index 0000000..f095add
--- /dev/null
+++ b/Runtime/Lua/LuaBind/LuaBindHelper.h
@@ -0,0 +1,16 @@
+#ifndef _LUA_BIND_HELPER_H
+#define _LUA_BIND_HELPER_H
+
+namespace LuaBind
+{
+ class UIDGenerator
+ {
+ public:
+ UIDGenerator() { m_Cur = 0; }
+ int GetID() { return ++m_Cur; }
+
+ private:
+ int m_Cur;
+ };
+};
+#endif \ No newline at end of file