static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.Grid gen_ret = new UnityEngine.Grid(); 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 UnityEngine.Grid constructor!")); }
static int _m_GetCellCenterWorld(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3Int _position; translator.Get(L, 2, out _position); var gen_ret = gen_to_be_invoked.GetCellCenterWorld(_position); translator.PushUnityEngineVector3(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public GridTilemapRepresentation(UGrid grid, Tilemap landTilemap, GridUtils utils) { _grid = grid; _landTilemap = landTilemap; _utils = utils; }