static int GetGesture(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BaseFinger obj = (BaseFinger)ToLua.CheckObject(L, 1, typeof(BaseFinger)); Gesture o = obj.GetGesture(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_touchCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; int ret = obj.touchCount; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index touchCount on a nil value" : e.Message)); } }
static int set_pickedUIElement(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); obj.pickedUIElement = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pickedUIElement on a nil value" : e.Message)); } }
static int set_deltaTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.deltaTime = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index deltaTime on a nil value" : e.Message)); } }
static int set_isOverGui(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.isOverGui = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isOverGui on a nil value" : e.Message)); } }
static int set_touchCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.touchCount = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index touchCount on a nil value" : e.Message)); } }
static int set_deltaPosition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2); obj.deltaPosition = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index deltaPosition on a nil value" : e.Message)); } }
static int get_pickedUIElement(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; UnityEngine.GameObject ret = obj.pickedUIElement; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pickedUIElement on a nil value" : e.Message)); } }
static int get_isOverGui(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; bool ret = obj.isOverGui; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isOverGui on a nil value" : e.Message)); } }
static int get_deltaTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; float ret = obj.deltaTime; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index deltaTime on a nil value" : e.Message)); } }
static int get_deltaPosition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BaseFinger obj = (BaseFinger)o; UnityEngine.Vector2 ret = obj.deltaPosition; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index deltaPosition on a nil value" : e.Message)); } }
static int _CreateBaseFinger(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { BaseFinger obj = new BaseFinger(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: BaseFinger.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }