static int RemoveBoneMask(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { DragonBones.AnimationState obj = (DragonBones.AnimationState)ToLua.CheckObject <DragonBones.AnimationState>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.RemoveBoneMask(arg0); return(0); } else if (count == 3) { DragonBones.AnimationState obj = (DragonBones.AnimationState)ToLua.CheckObject <DragonBones.AnimationState>(L, 1); string arg0 = ToLua.CheckString(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.RemoveBoneMask(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DragonBones.AnimationState.RemoveBoneMask")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveBoneMask(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); DragonBones.AnimationState obj = (DragonBones.AnimationState)ToLua.CheckObject(L, 1, typeof(DragonBones.AnimationState)); string arg0 = ToLua.CheckString(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.RemoveBoneMask(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }