c1_unity/Assets/XLua/Gen/TMP_AnimationCurveWrap.cs
2025-11-03 15:00:43 +08:00

271 lines
9.7 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 TMP_AnimationCurveWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(TMP_AnimationCurve);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationCurveY", _g_get_animationCurveY);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationCurveZ", _g_get_animationCurveZ);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveScaleY", _g_get_curveScaleY);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "useForWidth", _g_get_useForWidth);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveScaleZ", _g_get_curveScaleZ);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableZ", _g_get_enableZ);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationCurveY", _s_set_animationCurveY);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationCurveZ", _s_set_animationCurveZ);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveScaleY", _s_set_curveScaleY);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "useForWidth", _s_set_useForWidth);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveScaleZ", _s_set_curveScaleZ);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableZ", _s_set_enableZ);
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 TMP_AnimationCurve();
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 TMP_AnimationCurve constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_animationCurveY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.animationCurveY);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_animationCurveZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.animationCurveZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_curveScaleY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveScaleY);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_useForWidth(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.useForWidth);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_curveScaleZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveScaleZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enableZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_animationCurveY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.animationCurveY = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_animationCurveZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.animationCurveZ = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_curveScaleY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.curveScaleY = (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_useForWidth(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.useForWidth = (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_curveScaleZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.curveScaleZ = (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_enableZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.enableZ = LuaAPI.lua_toboolean(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}