672 lines
26 KiB
C#
672 lines
26 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 SpineRegionAttachmentWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(Spine.RegionAttachment);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 3, 16, 14);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRegion", _m_UpdateRegion);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeWorldVertices", _m_ComputeWorldVertices);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Copy", _m_Copy);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "X", _g_get_X);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Rotation", _g_get_Rotation);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleX", _g_get_ScaleX);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleY", _g_get_ScaleY);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height);
|
|
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, "Region", _g_get_Region);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Offset", _g_get_Offset);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "UVs", _g_get_UVs);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Sequence", _g_get_Sequence);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "X", _s_set_X);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Rotation", _s_set_Rotation);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleX", _s_set_ScaleX);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleY", _s_set_ScaleY);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height);
|
|
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, "Region", _s_set_Region);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Sequence", _s_set_Sequence);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 9, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BLX", Spine.RegionAttachment.BLX);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BLY", Spine.RegionAttachment.BLY);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ULX", Spine.RegionAttachment.ULX);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ULY", Spine.RegionAttachment.ULY);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "URX", Spine.RegionAttachment.URX);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "URY", Spine.RegionAttachment.URY);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BRX", Spine.RegionAttachment.BRX);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BRY", Spine.RegionAttachment.BRY);
|
|
|
|
|
|
|
|
|
|
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.RegionAttachment(_name);
|
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
|
}
|
|
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Spine.RegionAttachment>(L, 2))
|
|
{
|
|
Spine.RegionAttachment _other = (Spine.RegionAttachment)translator.GetObject(L, 2, typeof(Spine.RegionAttachment));
|
|
|
|
var gen_ret = new Spine.RegionAttachment(_other);
|
|
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.RegionAttachment constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UpdateRegion(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 5&& translator.Assignable<Spine.Slot>(L, 2)&& translator.Assignable<float[]>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|
{
|
|
Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot));
|
|
float[] _worldVertices = (float[])translator.GetObject(L, 3, typeof(float[]));
|
|
int _offset = LuaAPI.xlua_tointeger(L, 4);
|
|
int _stride = LuaAPI.xlua_tointeger(L, 5);
|
|
|
|
gen_to_be_invoked.ComputeWorldVertices( _slot, _worldVertices, _offset, _stride );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 4&& translator.Assignable<Spine.Slot>(L, 2)&& translator.Assignable<float[]>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
|
{
|
|
Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot));
|
|
float[] _worldVertices = (float[])translator.GetObject(L, 3, typeof(float[]));
|
|
int _offset = LuaAPI.xlua_tointeger(L, 4);
|
|
|
|
gen_to_be_invoked.ComputeWorldVertices( _slot, _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.RegionAttachment.ComputeWorldVertices!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Copy(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_X(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.X);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Y(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Y);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Rotation(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Rotation);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ScaleX(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ScaleY(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleY);
|
|
} 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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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 _g_get_R(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_Region(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_Offset(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Offset);
|
|
} 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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_Sequence(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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 _s_set_X(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.X = (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_Y(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Y = (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_Rotation(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Rotation = (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_ScaleX(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.ScaleX = (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_ScaleY(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.ScaleY = (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_Width(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_R(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_Region(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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_Sequence(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|