static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); DragonBones.Transform obj = (DragonBones.Transform)ToLua.CheckObject(L, 1, typeof(DragonBones.Transform)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Identity(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); DragonBones.Transform obj = (DragonBones.Transform)ToLua.CheckObject(L, 1, typeof(DragonBones.Transform)); DragonBones.Transform o = obj.Identity(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CopyFrom(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DragonBones.Transform obj = (DragonBones.Transform)ToLua.CheckObject(L, 1, typeof(DragonBones.Transform)); DragonBones.Transform arg0 = (DragonBones.Transform)ToLua.CheckObject(L, 2, typeof(DragonBones.Transform)); DragonBones.Transform o = obj.CopyFrom(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_rotation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DragonBones.Transform obj = (DragonBones.Transform)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.rotation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rotation on a nil value" : e.Message)); } }
static int get_rotation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DragonBones.Transform obj = (DragonBones.Transform)o; float ret = obj.rotation; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rotation on a nil value" : e.Message)); } }
static int get_transform(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DragonBones.BoneFrameData obj = (DragonBones.BoneFrameData)o; DragonBones.Transform ret = obj.transform; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transform on a nil value" : e.Message)); } }
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)); } }
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 get_origin(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DragonBones.TransformObject obj = (DragonBones.TransformObject)o; DragonBones.Transform ret = obj.origin; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index origin on a nil value" : e.Message)); } }
static int set_origin(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DragonBones.TransformObject obj = (DragonBones.TransformObject)o; DragonBones.Transform arg0 = (DragonBones.Transform)ToLua.CheckObject(L, 2, typeof(DragonBones.Transform)); obj.origin = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index origin on a nil value" : e.Message)); } }
static int _CreateDragonBones_Transform(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { DragonBones.Transform obj = new DragonBones.Transform(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DragonBones.Transform.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }