| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Vuplex_WebView_WebViewPrefabWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Vuplex.WebView.WebViewPrefab), typeof(Vuplex.WebView.BaseWebViewPrefab), "WebViewPrefab");
- L.RegFunction("ConvertToScreenPoint", ConvertToScreenPoint);
- L.RegFunction("Resize", Resize);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("InitialResolution", get_InitialResolution, set_InitialResolution);
- L.RegVar("ScrollingSensitivity", get_ScrollingSensitivity, set_ScrollingSensitivity);
- L.RegVar("Collider", get_Collider, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ConvertToScreenPoint(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)ToLua.CheckObject<Vuplex.WebView.WebViewPrefab>(L, 1);
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- UnityEngine.Vector2 o = obj.ConvertToScreenPoint(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Resize(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)ToLua.CheckObject<Vuplex.WebView.WebViewPrefab>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- obj.Resize(arg0, arg1);
- return 0;
- }
- 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_InitialResolution(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)o;
- float ret = obj.InitialResolution;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialResolution on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ScrollingSensitivity(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)o;
- float ret = obj.ScrollingSensitivity;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingSensitivity on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Collider(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)o;
- UnityEngine.Collider ret = obj.Collider;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Collider on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_InitialResolution(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.InitialResolution = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialResolution on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ScrollingSensitivity(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewPrefab obj = (Vuplex.WebView.WebViewPrefab)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.ScrollingSensitivity = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingSensitivity on a nil value");
- }
- }
- }
|