static int _m_HitTest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.PixelHitTest gen_to_be_invoked = (FairyGUI.PixelHitTest)translator.FastGetCSObj(L, 1); { UnityEngine.Rect _contentRect; translator.Get(L, 2, out _contentRect); UnityEngine.Vector2 _localPoint; translator.Get(L, 3, out _localPoint); bool gen_ret = gen_to_be_invoked.HitTest( _contentRect, _localPoint); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_sourceHeight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.PixelHitTest gen_to_be_invoked = (FairyGUI.PixelHitTest)translator.FastGetCSObj(L, 1); gen_to_be_invoked.sourceHeight = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_sourceWidth(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.PixelHitTest gen_to_be_invoked = (FairyGUI.PixelHitTest)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sourceWidth); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 6 && translator.Assignable <FairyGUI.PixelHitTestData>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) { FairyGUI.PixelHitTestData _data = (FairyGUI.PixelHitTestData)translator.GetObject(L, 2, typeof(FairyGUI.PixelHitTestData)); int _offsetX = LuaAPI.xlua_tointeger(L, 3); int _offsetY = LuaAPI.xlua_tointeger(L, 4); float _sourceWidth = (float)LuaAPI.lua_tonumber(L, 5); float _sourceHeight = (float)LuaAPI.lua_tonumber(L, 6); FairyGUI.PixelHitTest gen_ret = new FairyGUI.PixelHitTest(_data, _offsetX, _offsetY, _sourceWidth, _sourceHeight); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.PixelHitTest constructor!")); }