static int GetData(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.DataNodeComponent), typeof(string))) { UnityGameFramework.Runtime.DataNodeComponent obj = (UnityGameFramework.Runtime.DataNodeComponent)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); GameFramework.Variable o = obj.GetData(arg0); ToLua.PushObject(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.DataNodeComponent), typeof(string), typeof(GameFramework.DataNode.IDataNode))) { UnityGameFramework.Runtime.DataNodeComponent obj = (UnityGameFramework.Runtime.DataNodeComponent)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); GameFramework.DataNode.IDataNode arg1 = (GameFramework.DataNode.IDataNode)ToLua.ToObject(L, 3); GameFramework.Variable o = obj.GetData(arg0, arg1); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.DataNodeComponent.GetData")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Clear(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityGameFramework.Runtime.DataNodeComponent obj = (UnityGameFramework.Runtime.DataNodeComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.DataNodeComponent)); obj.Clear(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Root(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.DataNodeComponent obj = (UnityGameFramework.Runtime.DataNodeComponent)o; GameFramework.DataNode.IDataNode ret = obj.Root; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Root on a nil value" : e.Message)); } }