static int ClearClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)ToLua.CheckObject <FXGame.LuaBehaviour>(L, 1); obj.ClearClick(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)ToLua.CheckObject <FXGame.LuaBehaviour>(L, 1); LuaInterface.LuaTable o = obj.GetInstance(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnEndDrag(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)ToLua.CheckObject <FXGame.LuaBehaviour>(L, 1); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2); obj.OnEndDrag(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)ToLua.CheckObject <FXGame.LuaBehaviour>(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.RemoveClick(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetGameObject(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)ToLua.CheckObject <FXGame.LuaBehaviour>(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject o = obj.GetGameObject(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_injectToLua(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.injectToLua = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index injectToLua on a nil value")); } }
static int set_objs(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; System.Collections.Generic.List <FXGame.ObjMap> arg0 = (System.Collections.Generic.List <FXGame.ObjMap>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <FXGame.ObjMap>)); obj.objs = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index objs on a nil value")); } }
static int set_className(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; string arg0 = ToLua.CheckString(L, 2); obj.className = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index className on a nil value")); } }
static int get_injectToLua(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; bool ret = obj.injectToLua; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index injectToLua on a nil value")); } }
static int get_objs(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; System.Collections.Generic.List <FXGame.ObjMap> ret = obj.objs; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index objs on a nil value")); } }
static int get_className(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXGame.LuaBehaviour obj = (FXGame.LuaBehaviour)o; string ret = obj.className; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index className on a nil value")); } }