170 lines
3.8 KiB
C#
170 lines
3.8 KiB
C#
|
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
|
using System;
|
|||
|
|
using LuaInterface;
|
|||
|
|
|
|||
|
|
public class FairyGUI_GearDisplayWrap
|
|||
|
|
{
|
|||
|
|
public static void Register(LuaState L)
|
|||
|
|
{
|
|||
|
|
L.BeginClass(typeof(FairyGUI.GearDisplay), typeof(FairyGUI.GearBase));
|
|||
|
|
L.RegFunction("Apply", Apply);
|
|||
|
|
L.RegFunction("UpdateState", UpdateState);
|
|||
|
|
L.RegFunction("AddLock", AddLock);
|
|||
|
|
L.RegFunction("ReleaseLock", ReleaseLock);
|
|||
|
|
L.RegFunction("New", _CreateFairyGUI_GearDisplay);
|
|||
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
|
L.RegVar("pages", get_pages, set_pages);
|
|||
|
|
L.RegVar("connected", get_connected, null);
|
|||
|
|
L.EndClass();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int _CreateFairyGUI_GearDisplay(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject<FairyGUI.GObject>(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = new FairyGUI.GearDisplay(arg0);
|
|||
|
|
ToLua.PushObject(L, obj);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.GearDisplay.New");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int Apply(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)ToLua.CheckObject<FairyGUI.GearDisplay>(L, 1);
|
|||
|
|
obj.Apply();
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int UpdateState(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)ToLua.CheckObject<FairyGUI.GearDisplay>(L, 1);
|
|||
|
|
obj.UpdateState();
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int AddLock(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)ToLua.CheckObject<FairyGUI.GearDisplay>(L, 1);
|
|||
|
|
uint o = obj.AddLock();
|
|||
|
|
LuaDLL.lua_pushnumber(L, o);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int ReleaseLock(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)ToLua.CheckObject<FairyGUI.GearDisplay>(L, 1);
|
|||
|
|
uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
obj.ReleaseLock(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_pages(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)o;
|
|||
|
|
string[] ret = obj.pages;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index pages on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_connected(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)o;
|
|||
|
|
bool ret = obj.connected;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index connected on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_pages(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GearDisplay obj = (FairyGUI.GearDisplay)o;
|
|||
|
|
string[] arg0 = ToLua.CheckStringArray(L, 2);
|
|||
|
|
obj.pages = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index pages on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|