static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); System.Collections.Generic.KeyValuePair <int, TestAccount> obj = (System.Collections.Generic.KeyValuePair <int, TestAccount>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.KeyValuePair <int, TestAccount>)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); System.Collections.Generic.KeyValuePair <UnityEngine.GameObject, LuaInterface.LuaTable> obj = (System.Collections.Generic.KeyValuePair <UnityEngine.GameObject, LuaInterface.LuaTable>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.KeyValuePair <UnityEngine.GameObject, LuaInterface.LuaTable>)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ToString(IntPtr L) { ToLua.CheckArgsCount(L, 1); System.Collections.Generic.KeyValuePair <int, TestAccount> obj = (System.Collections.Generic.KeyValuePair <int, TestAccount>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.KeyValuePair <int, TestAccount>)); string o = null; try { o = obj.ToString(); } catch (Exception e) { LuaDLL.luaL_error(L, e.Message); return(0); } LuaDLL.lua_pushstring(L, o); ToLua.SetBack(L, 1, obj); return(1); }