private static int InitRenderTextureCamera(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)ToLua.CheckObject(L, 1, typeof(BusinessSysMapController)); businessSysMapController.InitRenderTextureCamera(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
private static int GetRenderTexture(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)ToLua.CheckObject(L, 1, typeof(BusinessSysMapController)); Texture renderTexture = businessSysMapController.GetRenderTexture(); ToLua.Push(L, renderTexture); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
private static int get_RenderTextureCamera(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)obj; Camera renderTextureCamera = businessSysMapController.RenderTextureCamera; ToLua.Push(L, renderTextureCamera); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index RenderTextureCamera on a nil value"); } return(result); }
private static int set_RenderTextureHeight(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)obj; int renderTextureHeight = (int)LuaDLL.luaL_checknumber(L, 2); businessSysMapController.RenderTextureHeight = renderTextureHeight; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index RenderTextureHeight on a nil value"); } return(result); }
private static int set_RenderTextureCamera(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)obj; Camera renderTextureCamera = (Camera)ToLua.CheckUnityObject(L, 2, typeof(Camera)); businessSysMapController.RenderTextureCamera = renderTextureCamera; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index RenderTextureCamera on a nil value"); } return(result); }
private static int get_Depth(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); BusinessSysMapController businessSysMapController = (BusinessSysMapController)obj; int depth = businessSysMapController.Depth; LuaDLL.lua_pushinteger(L, depth); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index Depth on a nil value"); } return(result); }