100 lines
2.7 KiB
C#
100 lines
2.7 KiB
C#
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
using System;
|
|||
|
using LuaInterface;
|
|||
|
|
|||
|
public class UnityEngine_EventSystems_BaseEventDataWrap
|
|||
|
{
|
|||
|
public static void Register(LuaState L)
|
|||
|
{
|
|||
|
L.BeginClass(typeof(UnityEngine.EventSystems.BaseEventData), typeof(UnityEngine.EventSystems.AbstractEventData));
|
|||
|
L.RegFunction("New", _CreateUnityEngine_EventSystems_BaseEventData);
|
|||
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
L.RegVar("currentInputModule", get_currentInputModule, null);
|
|||
|
L.RegVar("selectedObject", get_selectedObject, set_selectedObject);
|
|||
|
L.EndClass();
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _CreateUnityEngine_EventSystems_BaseEventData(IntPtr L)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|||
|
if (count == 1)
|
|||
|
{
|
|||
|
UnityEngine.EventSystems.EventSystem arg0 = (UnityEngine.EventSystems.EventSystem)ToLua.CheckObject<UnityEngine.EventSystems.EventSystem>(L, 1);
|
|||
|
UnityEngine.EventSystems.BaseEventData obj = new UnityEngine.EventSystems.BaseEventData(arg0);
|
|||
|
ToLua.PushObject(L, obj);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.EventSystems.BaseEventData.New");
|
|||
|
}
|
|||
|
}
|
|||
|
catch (Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_currentInputModule(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.EventSystems.BaseEventData obj = (UnityEngine.EventSystems.BaseEventData)o;
|
|||
|
UnityEngine.EventSystems.BaseInputModule ret = obj.currentInputModule;
|
|||
|
ToLua.Push(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index currentInputModule on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_selectedObject(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.EventSystems.BaseEventData obj = (UnityEngine.EventSystems.BaseEventData)o;
|
|||
|
UnityEngine.GameObject ret = obj.selectedObject;
|
|||
|
ToLua.PushSealed(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index selectedObject on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_selectedObject(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.EventSystems.BaseEventData obj = (UnityEngine.EventSystems.BaseEventData)o;
|
|||
|
UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
|
|||
|
obj.selectedObject = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index selectedObject on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|