#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 SpineMeshAttachmentWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.MeshAttachment); Utils.BeginObjectRegister(type, L, translator, 0, 4, 15, 15); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRegion", _m_UpdateRegion); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeWorldVertices", _m_ComputeWorldVertices); Utils.RegisterFunc(L, Utils.METHOD_IDX, "NewLinkedMesh", _m_NewLinkedMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Copy", _m_Copy); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Region", _g_get_Region); Utils.RegisterFunc(L, Utils.GETTER_IDX, "HullLength", _g_get_HullLength); Utils.RegisterFunc(L, Utils.GETTER_IDX, "RegionUVs", _g_get_RegionUVs); Utils.RegisterFunc(L, Utils.GETTER_IDX, "UVs", _g_get_UVs); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Triangles", _g_get_Triangles); Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); Utils.RegisterFunc(L, Utils.GETTER_IDX, "G", _g_get_G); Utils.RegisterFunc(L, Utils.GETTER_IDX, "B", _g_get_B); Utils.RegisterFunc(L, Utils.GETTER_IDX, "A", _g_get_A); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Path", _g_get_Path); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Sequence", _g_get_Sequence); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ParentMesh", _g_get_ParentMesh); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Edges", _g_get_Edges); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Region", _s_set_Region); Utils.RegisterFunc(L, Utils.SETTER_IDX, "HullLength", _s_set_HullLength); Utils.RegisterFunc(L, Utils.SETTER_IDX, "RegionUVs", _s_set_RegionUVs); Utils.RegisterFunc(L, Utils.SETTER_IDX, "UVs", _s_set_UVs); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Triangles", _s_set_Triangles); Utils.RegisterFunc(L, Utils.SETTER_IDX, "R", _s_set_R); Utils.RegisterFunc(L, Utils.SETTER_IDX, "G", _s_set_G); Utils.RegisterFunc(L, Utils.SETTER_IDX, "B", _s_set_B); Utils.RegisterFunc(L, Utils.SETTER_IDX, "A", _s_set_A); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Path", _s_set_Path); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Sequence", _s_set_Sequence); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ParentMesh", _s_set_ParentMesh); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Edges", _s_set_Edges); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); 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) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _name = LuaAPI.lua_tostring(L, 2); var gen_ret = new Spine.MeshAttachment(_name); 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 Spine.MeshAttachment constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateRegion(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateRegion( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ComputeWorldVertices(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) { Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); int _start = LuaAPI.xlua_tointeger(L, 3); int _count = LuaAPI.xlua_tointeger(L, 4); float[] _worldVertices = (float[])translator.GetObject(L, 5, typeof(float[])); int _offset = LuaAPI.xlua_tointeger(L, 6); int _stride = LuaAPI.xlua_tointeger(L, 7); gen_to_be_invoked.ComputeWorldVertices( _slot, _start, _count, _worldVertices, _offset, _stride ); return 0; } if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) { Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); int _start = LuaAPI.xlua_tointeger(L, 3); int _count = LuaAPI.xlua_tointeger(L, 4); float[] _worldVertices = (float[])translator.GetObject(L, 5, typeof(float[])); int _offset = LuaAPI.xlua_tointeger(L, 6); gen_to_be_invoked.ComputeWorldVertices( _slot, _start, _count, _worldVertices, _offset ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Spine.MeshAttachment.ComputeWorldVertices!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_NewLinkedMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.NewLinkedMesh( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Copy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.Copy( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Region(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Region); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_HullLength(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.HullLength); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_RegionUVs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.RegionUVs); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_UVs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.UVs); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Triangles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Triangles); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_R(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_G(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_B(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_A(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.A); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Path(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.Path); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Sequence(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Sequence); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_ParentMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.ParentMesh); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Edges(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Edges); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Width(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Height(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Height); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Region(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Region = (Spine.TextureRegion)translator.GetObject(L, 2, typeof(Spine.TextureRegion)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_HullLength(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.HullLength = 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_RegionUVs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.RegionUVs = (float[])translator.GetObject(L, 2, typeof(float[])); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_UVs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.UVs = (float[])translator.GetObject(L, 2, typeof(float[])); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Triangles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Triangles = (int[])translator.GetObject(L, 2, typeof(int[])); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_R(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.R = (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_G(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.G = (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_B(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.B = (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_A(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.A = (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_Path(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Path = 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_Sequence(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Sequence = (Spine.Sequence)translator.GetObject(L, 2, typeof(Spine.Sequence)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_ParentMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.ParentMesh = (Spine.MeshAttachment)translator.GetObject(L, 2, typeof(Spine.MeshAttachment)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Edges(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Edges = (int[])translator.GetObject(L, 2, typeof(int[])); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Width(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Width = (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_Height(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Height = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }