| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Singleton_LuaMgrWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Singleton<LuaMgr>), typeof(System.Object), "Singleton_LuaMgr");
- L.RegFunction("CreateInstance", CreateInstance);
- L.RegFunction("DestroyInstance", DestroyInstance);
- L.RegFunction("GetInstance", GetInstance);
- L.RegFunction("HasInstance", HasInstance);
- L.RegFunction("Init", Init);
- L.RegFunction("UnInit", UnInit);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("Instance", get_Instance, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateInstance(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- Singleton<LuaMgr>.CreateInstance();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int DestroyInstance(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- Singleton<LuaMgr>.DestroyInstance();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetInstance(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- LuaMgr o = Singleton<LuaMgr>.GetInstance();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int HasInstance(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- bool o = Singleton<LuaMgr>.HasInstance();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Init(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Singleton<LuaMgr> obj = (Singleton<LuaMgr>)ToLua.CheckObject<Singleton<LuaMgr>>(L, 1);
- obj.Init();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UnInit(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Singleton<LuaMgr> obj = (Singleton<LuaMgr>)ToLua.CheckObject<Singleton<LuaMgr>>(L, 1);
- obj.UnInit();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Instance(IntPtr L)
- {
- try
- {
- ToLua.PushObject(L, Singleton<LuaMgr>.Instance);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|