//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class Vuplex_WebView_BaseWebViewPrefabWrap { public static void Register(LuaState L) { L.BeginClass(typeof(Vuplex.WebView.BaseWebViewPrefab), typeof(UnityEngine.MonoBehaviour), "BaseWebViewPrefab"); L.RegFunction("Destroy", Destroy); L.RegFunction("SetCutoutRect", SetCutoutRect); L.RegFunction("SetPointerInputDetector", SetPointerInputDetector); L.RegFunction("WaitUntilInitialized", WaitUntilInitialized); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("InitialUrl", get_InitialUrl, set_InitialUrl); L.RegVar("DragMode", get_DragMode, set_DragMode); L.RegVar("ClickingEnabled", get_ClickingEnabled, set_ClickingEnabled); L.RegVar("HoveringEnabled", get_HoveringEnabled, set_HoveringEnabled); L.RegVar("ScrollingEnabled", get_ScrollingEnabled, set_ScrollingEnabled); L.RegVar("DragThreshold", get_DragThreshold, set_DragThreshold); L.RegVar("RemoteDebuggingEnabled", get_RemoteDebuggingEnabled, set_RemoteDebuggingEnabled); L.RegVar("LogConsoleMessages", get_LogConsoleMessages, set_LogConsoleMessages); L.RegVar("Material", get_Material, set_Material); L.RegVar("Visible", get_Visible, set_Visible); L.RegVar("WebView", get_WebView, null); L.RegVar("Clicked", get_Clicked, set_Clicked); L.RegVar("Initialized", get_Initialized, set_Initialized); L.RegVar("Scrolled", get_Scrolled, set_Scrolled); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Destroy(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1); obj.Destroy(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetCutoutRect(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1); UnityEngine.Rect arg0 = StackTraits.Check(L, 2); obj.SetCutoutRect(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetPointerInputDetector(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1); Vuplex.WebView.IPointerInputDetector arg0 = (Vuplex.WebView.IPointerInputDetector)ToLua.CheckObject(L, 2); obj.SetPointerInputDetector(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int WaitUntilInitialized(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1); System.Threading.Tasks.Task o = obj.WaitUntilInitialized(); ToLua.PushObject(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_InitialUrl(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; string ret = obj.InitialUrl; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_DragMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; Vuplex.WebView.DragMode ret = obj.DragMode; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_ClickingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.ClickingEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_HoveringEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.HoveringEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_ScrollingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.ScrollingEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_DragThreshold(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; float ret = obj.DragThreshold; LuaDLL.lua_pushnumber(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_RemoteDebuggingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.RemoteDebuggingEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_LogConsoleMessages(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.LogConsoleMessages; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Material(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; UnityEngine.Material ret = obj.Material; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Visible(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool ret = obj.Visible; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_WebView(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; Vuplex.WebView.IWebView ret = obj.WebView; ToLua.PushObject(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index WebView on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Clicked(IntPtr L) { ToLua.Push(L, new EventObject(typeof(System.EventHandler))); return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Initialized(IntPtr L) { ToLua.Push(L, new EventObject(typeof(System.EventHandler))); return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Scrolled(IntPtr L) { ToLua.Push(L, new EventObject(typeof(System.EventHandler))); return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_InitialUrl(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; string arg0 = ToLua.CheckString(L, 2); obj.InitialUrl = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_DragMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; Vuplex.WebView.DragMode arg0 = (Vuplex.WebView.DragMode)ToLua.CheckObject(L, 2, typeof(Vuplex.WebView.DragMode)); obj.DragMode = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_ClickingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.ClickingEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_HoveringEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.HoveringEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_ScrollingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.ScrollingEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_DragThreshold(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.DragThreshold = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_RemoteDebuggingEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.RemoteDebuggingEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_LogConsoleMessages(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.LogConsoleMessages = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Material(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject(L, 2); obj.Material = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Visible(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Visible = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Clicked(IntPtr L) { try { Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab)); EventObject arg0 = null; if (LuaDLL.lua_isuserdata(L, 2) != 0) { arg0 = (EventObject)ToLua.ToObject(L, 2); } else { return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Clicked' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'"); } if (arg0.op == EventOp.Add) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Clicked += ev; } else if (arg0.op == EventOp.Sub) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Clicked -= ev; } return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Initialized(IntPtr L) { try { Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab)); EventObject arg0 = null; if (LuaDLL.lua_isuserdata(L, 2) != 0) { arg0 = (EventObject)ToLua.ToObject(L, 2); } else { return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Initialized' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'"); } if (arg0.op == EventOp.Add) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Initialized += ev; } else if (arg0.op == EventOp.Sub) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Initialized -= ev; } return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Scrolled(IntPtr L) { try { Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab)); EventObject arg0 = null; if (LuaDLL.lua_isuserdata(L, 2) != 0) { arg0 = (EventObject)ToLua.ToObject(L, 2); } else { return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Scrolled' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'"); } if (arg0.op == EventOp.Add) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Scrolled += ev; } else if (arg0.op == EventOp.Sub) { System.EventHandler ev = (System.EventHandler)arg0.func; obj.Scrolled -= ev; } return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } }