| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Vuplex_WebView_KeyboardWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Vuplex.WebView.Keyboard), typeof(Vuplex.WebView.BaseKeyboard));
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("InitialResolution", get_InitialResolution, set_InitialResolution);
- L.RegVar("WebViewPrefab", get_WebViewPrefab, null);
- L.EndClass();
- }
- [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.Keyboard obj = (Vuplex.WebView.Keyboard)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_WebViewPrefab(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.Keyboard obj = (Vuplex.WebView.Keyboard)o;
- Vuplex.WebView.WebViewPrefab ret = obj.WebViewPrefab;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index WebViewPrefab on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_InitialResolution(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.Keyboard obj = (Vuplex.WebView.Keyboard)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");
- }
- }
- }
|