static int _m_Rotate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.IntRect gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { int _r = LuaAPI.xlua_tointeger(L, 2); PF.IntRect gen_ret = gen_to_be_invoked.Rotate( _r); translator.Push(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(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)) { int _xmin = LuaAPI.xlua_tointeger(L, 2); int _ymin = LuaAPI.xlua_tointeger(L, 3); int _xmax = LuaAPI.xlua_tointeger(L, 4); int _ymax = LuaAPI.xlua_tointeger(L, 5); PF.IntRect gen_ret = new PF.IntRect(_xmin, _ymin, _xmax, _ymax); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(PF.IntRect)); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.IntRect constructor!")); }
static int _m_Offset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.IntRect gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _x = LuaAPI.xlua_tointeger(L, 2); int _y = LuaAPI.xlua_tointeger(L, 3); PF.IntRect gen_ret = gen_to_be_invoked.Offset( _x, _y); translator.Push(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } if (gen_param_count == 2 && translator.Assignable <PF.Int2>(L, 2)) { PF.Int2 _offset; translator.Get(L, 2, out _offset); PF.IntRect gen_ret = gen_to_be_invoked.Offset( _offset); translator.Push(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.IntRect.Offset!")); }
static int _m_Union_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.IntRect _a; translator.Get(L, 1, out _a); PF.IntRect _b; translator.Get(L, 2, out _b); PF.IntRect gen_ret = PF.IntRect.Union(_a, _b); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetTouchingTilesInGraphSpace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { PF.NavmeshBase _self = (PF.NavmeshBase)translator.GetObject(L, 1, typeof(PF.NavmeshBase)); UnityEngine.Rect _rect; translator.Get(L, 2, out _rect); PF.IntRect gen_ret = Pathfinding.UnityHelper.GetTouchingTilesInGraphSpace( _self, _rect); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }