static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.GraphGizmoHelper gen_to_be_invoked = (Pathfinding.Util.GraphGizmoHelper)translator.FastGetCSObj(L, 1); { Pathfinding.Util.RetainedGizmos.Hasher _hasher; translator.Get(L, 2, out _hasher); Pathfinding.Util.RetainedGizmos _gizmos = (Pathfinding.Util.RetainedGizmos)translator.GetObject(L, 3, typeof(Pathfinding.Util.RetainedGizmos)); gen_to_be_invoked.Init( _hasher, _gizmos); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public override void OnDrawGizmos(Pathfinding.Util.RetainedGizmos gizmos, bool drawNodes) { base.OnDrawGizmos(gizmos, drawNodes); if (!drawNodes) { return; } Gizmos.color = new Color(0.161f, 0.341f, 1f, 0.5f); if (root != null) { DrawChildren(this, root); } else if (!string.IsNullOrEmpty(searchTag)) { GameObject[] gos = GameObject.FindGameObjectsWithTag(searchTag); for (int i = 0; i < gos.Length; i++) { Gizmos.DrawCube(gos[i].transform.position, Vector3.one * UnityEditor.HandleUtility.GetHandleSize(gos[i].transform.position) * 0.1F); } } }
static int _m_Draw(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1); { Pathfinding.Util.RetainedGizmos.Hasher _hasher; translator.Get(L, 2, out _hasher); bool gen_ret = gen_to_be_invoked.Draw( _hasher); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DrawMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos.Builder gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos.Builder)translator.FastGetCSObj(L, 1); { Pathfinding.Util.RetainedGizmos _gizmos = (Pathfinding.Util.RetainedGizmos)translator.GetObject(L, 2, typeof(Pathfinding.Util.RetainedGizmos)); UnityEngine.Vector3[] _vertices = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); System.Collections.Generic.List <int> _triangles = (System.Collections.Generic.List <int>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <int>)); UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 5, typeof(UnityEngine.Color[])); gen_to_be_invoked.DrawMesh( _gizmos, _vertices, _triangles, _colors); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public void Init(RetainedGizmos.Hasher hasher, RetainedGizmos gizmos) { debugData = PathFindHelper.debugPathData; debugPathID = PathFindHelper.debugPathID; debugMode = AstarPath.active.debugMode; debugFloor = AstarPath.active.debugFloor; debugRoof = AstarPath.active.debugRoof; showSearchTree = AstarPath.active.showSearchTree && debugData != null; this.gizmos = gizmos; this.hasher = hasher; builder = ObjectPool <RetainedGizmos.Builder> .Claim(); }
static int _s_set_lineMaterial(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1); gen_to_be_invoked.lineMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_lineMaterial(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.lineMaterial); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
public void Init(AstarPath active, RetainedGizmos.Hasher hasher, RetainedGizmos gizmos) { if (active != null) { debugData = active.debugPathData; debugPathID = active.debugPathID; debugMode = active.debugMode; debugFloor = active.debugFloor; debugRoof = active.debugRoof; showSearchTree = active.showSearchTree && debugData != null; } this.gizmos = gizmos; this.hasher = hasher; builder = ObjectPool <RetainedGizmos.Builder> .Claim(); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.Util.RetainedGizmos gen_ret = new Pathfinding.Util.RetainedGizmos(); 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.RetainedGizmos constructor!")); }
static int _m_OnDrawGizmos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1 && translator.Assignable <PF.EuclideanEmbedding>(L, 1)) { PF.EuclideanEmbedding _embedding = (PF.EuclideanEmbedding)translator.GetObject(L, 1, typeof(PF.EuclideanEmbedding)); Pathfinding.UnityHelper.OnDrawGizmos( _embedding); return(0); } if (gen_param_count == 3 && translator.Assignable <PF.NavmeshBase>(L, 1) && translator.Assignable <Pathfinding.Util.RetainedGizmos>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { PF.NavmeshBase _navmeshBase = (PF.NavmeshBase)translator.GetObject(L, 1, typeof(PF.NavmeshBase)); Pathfinding.Util.RetainedGizmos _gizmos = (Pathfinding.Util.RetainedGizmos)translator.GetObject(L, 2, typeof(Pathfinding.Util.RetainedGizmos)); bool _drawNodes = LuaAPI.lua_toboolean(L, 3); Pathfinding.UnityHelper.OnDrawGizmos( _navmeshBase, _gizmos, _drawNodes); 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.UnityHelper.OnDrawGizmos!")); }
static int _m_ClearCache(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearCache( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetSingleFrameGizmoHelper(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Util.RetainedGizmos gen_to_be_invoked = (Pathfinding.Util.RetainedGizmos)translator.FastGetCSObj(L, 1); { Pathfinding.Util.GraphGizmoHelper gen_ret = gen_to_be_invoked.GetSingleFrameGizmoHelper( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }