c1_unity/Assets/XLua/Gen/UnityEngine_TextMeshWrap.cs
2023-04-03 11:04:31 +08:00

461 lines
18 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class UnityEngineTextMeshWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.TextMesh);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 12);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "offsetZ", _g_get_offsetZ);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchor", _g_get_anchor);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterSize", _g_get_characterSize);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "tabSize", _g_get_tabSize);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "offsetZ", _s_set_offsetZ);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchor", _s_set_anchor);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterSize", _s_set_characterSize);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "tabSize", _s_set_tabSize);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new UnityEngine.TextMesh();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextMesh constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_text(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushstring(L, gen_to_be_invoked.text);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_font(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.font);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_fontSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_fontStyle(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.fontStyle);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_offsetZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.offsetZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_alignment(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.alignment);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_anchor(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.anchor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_characterSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.characterSize);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_lineSpacing(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_tabSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tabSize);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_richText(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_color(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineColor(L, gen_to_be_invoked.color);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_text(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_font(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_fontSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.fontSize = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_fontStyle(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.fontStyle = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_offsetZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.offsetZ = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_alignment(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
UnityEngine.TextAlignment gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.alignment = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_anchor(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.anchor = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_characterSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.characterSize = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_lineSpacing(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_tabSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.tabSize = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_richText(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_color(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.color = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}