93 lines
2.1 KiB
C#
93 lines
2.1 KiB
C#
|
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
|
using System;
|
|||
|
|
using LuaInterface;
|
|||
|
|
|
|||
|
|
public class LuaUIHelperTextWrap
|
|||
|
|
{
|
|||
|
|
public static void Register(LuaState L)
|
|||
|
|
{
|
|||
|
|
L.BeginClass(typeof(LuaUIHelperText), typeof(UnityEngine.MonoBehaviour));
|
|||
|
|
L.RegFunction("GetText", GetText);
|
|||
|
|
L.RegFunction("__eq", op_Equality);
|
|||
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
|
L.RegVar("texts", get_texts, set_texts);
|
|||
|
|
L.EndClass();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int GetText(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
LuaUIHelperText obj = (LuaUIHelperText)ToLua.CheckObject<LuaUIHelperText>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
string[] o = obj.GetText(arg0, arg1);
|
|||
|
|
ToLua.Push(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_texts(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
LuaUIHelperText obj = (LuaUIHelperText)o;
|
|||
|
|
UnityEngine.TextAsset[] ret = obj.texts;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index texts on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_texts(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
LuaUIHelperText obj = (LuaUIHelperText)o;
|
|||
|
|
UnityEngine.TextAsset[] arg0 = ToLua.CheckObjectArray<UnityEngine.TextAsset>(L, 2);
|
|||
|
|
obj.texts = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index texts on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|