| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Spine_SkeletonWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Spine.Skeleton), typeof(System.Object), "Skeleton");
- L.RegFunction("UpdateCache", UpdateCache);
- L.RegFunction("UpdateWorldTransform", UpdateWorldTransform);
- L.RegFunction("SetToSetupPose", SetToSetupPose);
- L.RegFunction("SetBonesToSetupPose", SetBonesToSetupPose);
- L.RegFunction("SetSlotsToSetupPose", SetSlotsToSetupPose);
- L.RegFunction("FindBone", FindBone);
- L.RegFunction("FindBoneIndex", FindBoneIndex);
- L.RegFunction("FindSlot", FindSlot);
- L.RegFunction("FindSlotIndex", FindSlotIndex);
- L.RegFunction("SetSkin", SetSkin);
- L.RegFunction("GetAttachment", GetAttachment);
- L.RegFunction("SetAttachment", SetAttachment);
- L.RegFunction("FindIkConstraint", FindIkConstraint);
- L.RegFunction("FindTransformConstraint", FindTransformConstraint);
- L.RegFunction("FindPathConstraint", FindPathConstraint);
- L.RegFunction("Update", Update);
- L.RegFunction("GetBounds", GetBounds);
- L.RegFunction("New", _CreateSpine_Skeleton);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("Data", get_Data, null);
- L.RegVar("Bones", get_Bones, null);
- L.RegVar("UpdateCacheList", get_UpdateCacheList, null);
- L.RegVar("Slots", get_Slots, null);
- L.RegVar("DrawOrder", get_DrawOrder, null);
- L.RegVar("IkConstraints", get_IkConstraints, null);
- L.RegVar("PathConstraints", get_PathConstraints, null);
- L.RegVar("TransformConstraints", get_TransformConstraints, null);
- L.RegVar("Skin", get_Skin, set_Skin);
- L.RegVar("R", get_R, set_R);
- L.RegVar("G", get_G, set_G);
- L.RegVar("B", get_B, set_B);
- L.RegVar("A", get_A, set_A);
- L.RegVar("Time", get_Time, set_Time);
- L.RegVar("X", get_X, set_X);
- L.RegVar("Y", get_Y, set_Y);
- L.RegVar("ScaleX", get_ScaleX, set_ScaleX);
- L.RegVar("ScaleY", get_ScaleY, set_ScaleY);
- L.RegVar("RootBone", get_RootBone, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateSpine_Skeleton(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1)
- {
- Spine.SkeletonData arg0 = (Spine.SkeletonData)ToLua.CheckObject<Spine.SkeletonData>(L, 1);
- Spine.Skeleton obj = new Spine.Skeleton(arg0);
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Spine.Skeleton.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateCache(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- obj.UpdateCache();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateWorldTransform(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1)
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- obj.UpdateWorldTransform();
- return 0;
- }
- else if (count == 2)
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- Spine.Bone arg0 = (Spine.Bone)ToLua.CheckObject<Spine.Bone>(L, 2);
- obj.UpdateWorldTransform(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.UpdateWorldTransform");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetToSetupPose(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- obj.SetToSetupPose();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetBonesToSetupPose(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- obj.SetBonesToSetupPose();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetSlotsToSetupPose(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- obj.SetSlotsToSetupPose();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindBone(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- Spine.Bone o = obj.FindBone(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindBoneIndex(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- int o = obj.FindBoneIndex(arg0);
- LuaDLL.lua_pushinteger(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindSlot(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- Spine.Slot o = obj.FindSlot(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindSlotIndex(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- int o = obj.FindSlotIndex(arg0);
- LuaDLL.lua_pushinteger(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetSkin(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 2 && TypeChecker.CheckTypes<string>(L, 2))
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.ToString(L, 2);
- obj.SetSkin(arg0);
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes<Spine.Skin>(L, 2))
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- Spine.Skin arg0 = (Spine.Skin)ToLua.ToObject(L, 2);
- obj.SetSkin(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.SetSkin");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetAttachment(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 3 && TypeChecker.CheckTypes<string, string>(L, 2))
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.ToString(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- Spine.Attachment o = obj.GetAttachment(arg0, arg1);
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 3 && TypeChecker.CheckTypes<int, string>(L, 2))
- {
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- Spine.Attachment o = obj.GetAttachment(arg0, arg1);
- ToLua.PushObject(L, o);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.GetAttachment");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetAttachment(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- obj.SetAttachment(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindIkConstraint(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- Spine.IkConstraint o = obj.FindIkConstraint(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindTransformConstraint(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- Spine.TransformConstraint o = obj.FindTransformConstraint(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindPathConstraint(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- Spine.PathConstraint o = obj.FindPathConstraint(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Update(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.Update(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetBounds(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 6);
- Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
- float arg0;
- float arg1;
- float arg2;
- float arg3;
- float[] arg4 = ToLua.CheckNumberArray<float>(L, 6);
- obj.GetBounds(out arg0, out arg1, out arg2, out arg3, ref arg4);
- LuaDLL.lua_pushnumber(L, arg0);
- LuaDLL.lua_pushnumber(L, arg1);
- LuaDLL.lua_pushnumber(L, arg2);
- LuaDLL.lua_pushnumber(L, arg3);
- ToLua.Push(L, arg4);
- return 5;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Data(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.SkeletonData ret = obj.Data;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Bones(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.Bone> ret = obj.Bones;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Bones on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_UpdateCacheList(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.IUpdatable> ret = obj.UpdateCacheList;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index UpdateCacheList on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Slots(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.Slot> ret = obj.Slots;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Slots on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_DrawOrder(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.Slot> ret = obj.DrawOrder;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index DrawOrder on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_IkConstraints(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.IkConstraint> ret = obj.IkConstraints;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index IkConstraints on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_PathConstraints(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.PathConstraint> ret = obj.PathConstraints;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index PathConstraints on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_TransformConstraints(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.ExposedList<Spine.TransformConstraint> ret = obj.TransformConstraints;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index TransformConstraints on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Skin(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.Skin ret = obj.Skin;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Skin on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_R(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.R;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index R on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_G(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.G;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index G on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_B(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.B;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index B on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_A(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.A;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index A on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Time(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.Time;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Time on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_X(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.X;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index X on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Y(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.Y;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Y on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ScaleX(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.ScaleX;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleX on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ScaleY(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float ret = obj.ScaleY;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleY on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_RootBone(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.Bone ret = obj.RootBone;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index RootBone on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Skin(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- Spine.Skin arg0 = (Spine.Skin)ToLua.CheckObject<Spine.Skin>(L, 2);
- obj.Skin = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Skin on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_R(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.R = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index R on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_G(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.G = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index G on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_B(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.B = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index B on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_A(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.A = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index A on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Time(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.Time = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Time on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_X(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.X = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index X on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Y(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.Y = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Y on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ScaleX(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.ScaleX = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleX on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ScaleY(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.Skeleton obj = (Spine.Skeleton)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.ScaleY = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleY on a nil value");
- }
- }
- }
|