static int _m_Line(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.Draw gen_to_be_invoked = (Pathfinding.Util.Draw)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _a; translator.Get(L, 2, out _a); UnityEngine.Vector3 _b; translator.Get(L, 3, out _b); UnityEngine.Color _color; translator.Get(L, 4, out _color); gen_to_be_invoked.Line(_a, _b, _color); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Cylinder(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.Draw gen_to_be_invoked = (Pathfinding.Util.Draw)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _position; translator.Get(L, 2, out _position); UnityEngine.Vector3 _up; translator.Get(L, 3, out _up); float _height = (float)LuaAPI.lua_tonumber(L, 4); float _radius = (float)LuaAPI.lua_tonumber(L, 5); UnityEngine.Color _color; translator.Get(L, 6, out _color); gen_to_be_invoked.Cylinder(_position, _up, _height, _radius, _color); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CircleXZ(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.Draw gen_to_be_invoked = (Pathfinding.Util.Draw)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 6 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Color>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) { UnityEngine.Vector3 _center; translator.Get(L, 2, out _center); float _radius = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Color _color; translator.Get(L, 4, out _color); float _startAngle = (float)LuaAPI.lua_tonumber(L, 5); float _endAngle = (float)LuaAPI.lua_tonumber(L, 6); gen_to_be_invoked.CircleXZ(_center, _radius, _color, _startAngle, _endAngle); return(0); } if (gen_param_count == 5 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Color>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { UnityEngine.Vector3 _center; translator.Get(L, 2, out _center); float _radius = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Color _color; translator.Get(L, 4, out _color); float _startAngle = (float)LuaAPI.lua_tonumber(L, 5); gen_to_be_invoked.CircleXZ(_center, _radius, _color, _startAngle); return(0); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Color>(L, 4)) { UnityEngine.Vector3 _center; translator.Get(L, 2, out _center); float _radius = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Color _color; translator.Get(L, 4, out _color); gen_to_be_invoked.CircleXZ(_center, _radius, _color); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.Util.Draw.CircleXZ!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.Util.Draw gen_ret = new Pathfinding.Util.Draw(); 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 Pathfinding.Util.Draw constructor!")); }