コード例 #1
0
 static int GetCurAniTrack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ShapeSpineEvent  obj = (ShapeSpineEvent)ToLua.CheckObject <ShapeSpineEvent>(L, 1);
         Spine.TrackEntry o   = obj.GetCurAniTrack();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static int SetSpineTimeScale(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShapeSpineEvent obj  = (ShapeSpineEvent)ToLua.CheckObject <ShapeSpineEvent>(L, 1);
         float           arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.SetSpineTimeScale(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
 static int SetLua_EndCall(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShapeSpineEvent obj  = (ShapeSpineEvent)ToLua.CheckObject <ShapeSpineEvent>(L, 1);
         string          arg0 = ToLua.CheckString(L, 2);
         obj.SetLua_EndCall(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }