| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Spine_AnimationStateWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Spine.AnimationState), typeof(System.Object), "AnimationState");
- L.RegFunction("AssignEventSubscribersFrom", AssignEventSubscribersFrom);
- L.RegFunction("AddEventSubscribersFrom", AddEventSubscribersFrom);
- L.RegFunction("Update", Update);
- L.RegFunction("Apply", Apply);
- L.RegFunction("ClearTracks", ClearTracks);
- L.RegFunction("ClearTrack", ClearTrack);
- L.RegFunction("SetAnimation", SetAnimation);
- L.RegFunction("AddAnimation", AddAnimation);
- L.RegFunction("SetEmptyAnimation", SetEmptyAnimation);
- L.RegFunction("AddEmptyAnimation", AddEmptyAnimation);
- L.RegFunction("SetEmptyAnimations", SetEmptyAnimations);
- L.RegFunction("GetCurrent", GetCurrent);
- L.RegFunction("ClearListenerNotifications", ClearListenerNotifications);
- L.RegFunction("ToString", ToString);
- L.RegFunction("New", _CreateSpine_AnimationState);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("TimeScale", get_TimeScale, set_TimeScale);
- L.RegVar("Data", get_Data, set_Data);
- L.RegVar("Tracks", get_Tracks, null);
- L.RegVar("Start", get_Start, set_Start);
- L.RegVar("Interrupt", get_Interrupt, set_Interrupt);
- L.RegVar("End", get_End, set_End);
- L.RegVar("Dispose", get_Dispose, set_Dispose);
- L.RegVar("Complete", get_Complete, set_Complete);
- L.RegVar("Event", get_Event, set_Event);
- L.RegFunction("TrackEntryEventDelegate", Spine_AnimationState_TrackEntryEventDelegate);
- L.RegFunction("TrackEntryDelegate", Spine_AnimationState_TrackEntryDelegate);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateSpine_AnimationState(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1)
- {
- Spine.AnimationStateData arg0 = (Spine.AnimationStateData)ToLua.CheckObject<Spine.AnimationStateData>(L, 1);
- Spine.AnimationState obj = new Spine.AnimationState(arg0);
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Spine.AnimationState.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AssignEventSubscribersFrom(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- Spine.AnimationState arg0 = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 2);
- obj.AssignEventSubscribersFrom(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddEventSubscribersFrom(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- Spine.AnimationState arg0 = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 2);
- obj.AddEventSubscribersFrom(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Update(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(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 Apply(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- Spine.Skeleton arg0 = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 2);
- bool o = obj.Apply(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearTracks(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- obj.ClearTracks();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearTrack(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.ClearTrack(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetAnimation(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 4 && TypeChecker.CheckTypes<string, bool>(L, 3))
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- Spine.TrackEntry o = obj.SetAnimation(arg0, arg1, arg2);
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 4 && TypeChecker.CheckTypes<Spine.Animation, bool>(L, 3))
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- Spine.Animation arg1 = (Spine.Animation)ToLua.ToObject(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- Spine.TrackEntry o = obj.SetAnimation(arg0, arg1, arg2);
- ToLua.PushObject(L, o);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.AnimationState.SetAnimation");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddAnimation(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 5 && TypeChecker.CheckTypes<string, bool, float>(L, 3))
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- float arg3 = (float)LuaDLL.lua_tonumber(L, 5);
- Spine.TrackEntry o = obj.AddAnimation(arg0, arg1, arg2, arg3);
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 5 && TypeChecker.CheckTypes<Spine.Animation, bool, float>(L, 3))
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- Spine.Animation arg1 = (Spine.Animation)ToLua.ToObject(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- float arg3 = (float)LuaDLL.lua_tonumber(L, 5);
- Spine.TrackEntry o = obj.AddAnimation(arg0, arg1, arg2, arg3);
- ToLua.PushObject(L, o);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.AnimationState.AddAnimation");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetEmptyAnimation(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- Spine.TrackEntry o = obj.SetEmptyAnimation(arg0, arg1);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddEmptyAnimation(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
- Spine.TrackEntry o = obj.AddEmptyAnimation(arg0, arg1, arg2);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetEmptyAnimations(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.SetEmptyAnimations(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetCurrent(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- Spine.TrackEntry o = obj.GetCurrent(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearListenerNotifications(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- obj.ClearListenerNotifications();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ToString(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject<Spine.AnimationState>(L, 1);
- string o = obj.ToString();
- LuaDLL.lua_pushstring(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_TimeScale(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)o;
- float ret = obj.TimeScale;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index TimeScale on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Data(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)o;
- Spine.AnimationStateData 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_Tracks(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)o;
- Spine.ExposedList<Spine.TrackEntry> ret = obj.Tracks;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Tracks on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Start(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Interrupt(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_End(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Dispose(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Complete(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Event(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(Spine.AnimationState.TrackEntryEventDelegate)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_TimeScale(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.TimeScale = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index TimeScale on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Data(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Spine.AnimationState obj = (Spine.AnimationState)o;
- Spine.AnimationStateData arg0 = (Spine.AnimationStateData)ToLua.CheckObject<Spine.AnimationStateData>(L, 2);
- obj.Data = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Start(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.Start' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Start += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Start -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Interrupt(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.Interrupt' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Interrupt += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Interrupt -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_End(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.End' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.End += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.End -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Dispose(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.Dispose' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Dispose += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Dispose -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Complete(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.Complete' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Complete += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryDelegate ev = (Spine.AnimationState.TrackEntryDelegate)arg0.func;
- obj.Complete -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Event(IntPtr L)
- {
- try
- {
- Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Spine.AnimationState.Event' can only appear on the left hand side of += or -= when used outside of the type 'Spine.AnimationState'");
- }
- if (arg0.op == EventOp.Add)
- {
- Spine.AnimationState.TrackEntryEventDelegate ev = (Spine.AnimationState.TrackEntryEventDelegate)arg0.func;
- obj.Event += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- Spine.AnimationState.TrackEntryEventDelegate ev = (Spine.AnimationState.TrackEntryEventDelegate)arg0.func;
- obj.Event -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Spine_AnimationState_TrackEntryEventDelegate(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- LuaFunction func = ToLua.CheckLuaFunction(L, 1);
- if (count == 1)
- {
- Delegate arg1 = DelegateTraits<Spine.AnimationState.TrackEntryEventDelegate>.Create(func);
- ToLua.Push(L, arg1);
- }
- else
- {
- LuaTable self = ToLua.CheckLuaTable(L, 2);
- Delegate arg1 = DelegateTraits<Spine.AnimationState.TrackEntryEventDelegate>.Create(func, self);
- ToLua.Push(L, arg1);
- }
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Spine_AnimationState_TrackEntryDelegate(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- LuaFunction func = ToLua.CheckLuaFunction(L, 1);
- if (count == 1)
- {
- Delegate arg1 = DelegateTraits<Spine.AnimationState.TrackEntryDelegate>.Create(func);
- ToLua.Push(L, arg1);
- }
- else
- {
- LuaTable self = ToLua.CheckLuaTable(L, 2);
- Delegate arg1 = DelegateTraits<Spine.AnimationState.TrackEntryDelegate>.Create(func, self);
- ToLua.Push(L, arg1);
- }
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|