示例#1
0
 static int ToMatrix(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DragonBones.Transform obj  = (DragonBones.Transform)ToLua.CheckObject(L, 1, typeof(DragonBones.Transform));
         DragonBones.Matrix    arg0 = (DragonBones.Matrix)ToLua.CheckObject(L, 2, typeof(DragonBones.Matrix));
         DragonBones.Transform o    = obj.ToMatrix(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetCacheFrame(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         DragonBones.ArmatureData obj  = (DragonBones.ArmatureData)ToLua.CheckObject(L, 1, typeof(DragonBones.ArmatureData));
         DragonBones.Matrix       arg0 = (DragonBones.Matrix)ToLua.CheckObject(L, 2, typeof(DragonBones.Matrix));
         DragonBones.Transform    arg1 = (DragonBones.Transform)ToLua.CheckObject(L, 3, typeof(DragonBones.Transform));
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         obj.GetCacheFrame(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetCacheFrame(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DragonBones.ArmatureData obj  = (DragonBones.ArmatureData)ToLua.CheckObject(L, 1, typeof(DragonBones.ArmatureData));
         DragonBones.Matrix       arg0 = (DragonBones.Matrix)ToLua.CheckObject(L, 2, typeof(DragonBones.Matrix));
         DragonBones.Transform    arg1 = (DragonBones.Transform)ToLua.CheckObject(L, 3, typeof(DragonBones.Transform));
         int o = obj.SetCacheFrame(arg0, arg1);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
    static int get_globalTransformMatrix(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.TransformObject obj = (DragonBones.TransformObject)o;
            DragonBones.Matrix          ret = obj.globalTransformMatrix;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index globalTransformMatrix on a nil value" : e.Message));
        }
    }