#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class IronSourceAdQualityManifestToolsWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(IronSourceAdQualityManifestTools); Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 18, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateManifest", _m_GenerateManifest_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateManifest", _m_UpdateManifest_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "AddActivity", _m_AddActivity_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveActivity", _m_RemoveActivity_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "SetPermission", _m_SetPermission_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "RemovePermission", _m_RemovePermission_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendApplicationElement", _m_AppendApplicationElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveApplicationElement", _m_RemoveApplicationElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "PrependManifestElement", _m_PrependManifestElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveManifestElement", _m_RemoveManifestElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "AddMetaDataTag", _m_AddMetaDataTag_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendElementIfMissing", _m_AppendElementIfMissing_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "PrependElementIfMissing", _m_PrependElementIfMissing_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveElement", _m_RemoveElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindChildNode", _m_FindChildNode_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindChildElement", _m_FindChildElement_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindElementWithTagAndName", _m_FindElementWithTagAndName_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { var gen_ret = new IronSourceAdQualityManifestTools(); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to IronSourceAdQualityManifestTools constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GenerateManifest_xlua_st_(RealStatePtr L) { try { { IronSourceAdQualityManifestTools.GenerateManifest( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateManifest_xlua_st_(RealStatePtr L) { try { { IronSourceAdQualityManifestTools.UpdateManifest( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddActivity_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _activityName = LuaAPI.lua_tostring(L, 1); System.Collections.Generic.Dictionary _attributes = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); IronSourceAdQualityManifestTools.AddActivity( _activityName, _attributes ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveActivity_xlua_st_(RealStatePtr L) { try { { string _activityName = LuaAPI.lua_tostring(L, 1); IronSourceAdQualityManifestTools.RemoveActivity( _activityName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetPermission_xlua_st_(RealStatePtr L) { try { { string _permissionName = LuaAPI.lua_tostring(L, 1); IronSourceAdQualityManifestTools.SetPermission( _permissionName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemovePermission_xlua_st_(RealStatePtr L) { try { { string _permissionName = LuaAPI.lua_tostring(L, 1); IronSourceAdQualityManifestTools.RemovePermission( _permissionName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AppendApplicationElement_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.Dictionary _attributes = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); var gen_ret = IronSourceAdQualityManifestTools.AppendApplicationElement( _tagName, _name, _attributes ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveApplicationElement_xlua_st_(RealStatePtr L) { try { { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); IronSourceAdQualityManifestTools.RemoveApplicationElement( _tagName, _name ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PrependManifestElement_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); var gen_ret = IronSourceAdQualityManifestTools.PrependManifestElement( _tagName, _name ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveManifestElement_xlua_st_(RealStatePtr L) { try { { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); IronSourceAdQualityManifestTools.RemoveManifestElement( _tagName, _name ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddMetaDataTag_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _mdName = LuaAPI.lua_tostring(L, 1); string _mdValue = LuaAPI.lua_tostring(L, 2); var gen_ret = IronSourceAdQualityManifestTools.AddMetaDataTag( _mdName, _mdValue ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AppendElementIfMissing_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.Dictionary _otherAttributes = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 4, typeof(System.Xml.XmlNode)); var gen_ret = IronSourceAdQualityManifestTools.AppendElementIfMissing( _tagName, _name, _otherAttributes, _parent ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PrependElementIfMissing_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.Dictionary _otherAttributes = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 4, typeof(System.Xml.XmlNode)); var gen_ret = IronSourceAdQualityManifestTools.PrependElementIfMissing( _tagName, _name, _otherAttributes, _parent ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveElement_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 3, typeof(System.Xml.XmlNode)); IronSourceAdQualityManifestTools.RemoveElement( _tagName, _name, _parent ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindChildNode_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 1, typeof(System.Xml.XmlNode)); string _tagName = LuaAPI.lua_tostring(L, 2); var gen_ret = IronSourceAdQualityManifestTools.FindChildNode( _parent, _tagName ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindChildElement_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 1, typeof(System.Xml.XmlNode)); string _tagName = LuaAPI.lua_tostring(L, 2); var gen_ret = IronSourceAdQualityManifestTools.FindChildElement( _parent, _tagName ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindElementWithTagAndName_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tagName = LuaAPI.lua_tostring(L, 1); string _name = LuaAPI.lua_tostring(L, 2); System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 3, typeof(System.Xml.XmlNode)); var gen_ret = IronSourceAdQualityManifestTools.FindElementWithTagAndName( _tagName, _name, _parent ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } } }