c1_unity/Assets/XLua/Gen/com_adjust_sdk_AdjustEventWrap.cs
2025-11-03 15:00:43 +08:00

234 lines
6.8 KiB
C#

#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 comadjustsdkAdjustEventWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(com.adjust.sdk.AdjustEvent);
Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRevenue", _m_setRevenue);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "addCallbackParameter", _m_addCallbackParameter);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerParameter", _m_addPartnerParameter);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "setTransactionId", _m_setTransactionId);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "setCallbackId", _m_setCallbackId);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
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) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
{
string _eventToken = LuaAPI.lua_tostring(L, 2);
var gen_ret = new com.adjust.sdk.AdjustEvent(_eventToken);
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 com.adjust.sdk.AdjustEvent constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_setRevenue(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1);
{
double _amount = LuaAPI.lua_tonumber(L, 2);
string _currency = LuaAPI.lua_tostring(L, 3);
gen_to_be_invoked.setRevenue( _amount, _currency );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_addCallbackParameter(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1);
{
string _key = LuaAPI.lua_tostring(L, 2);
string _value = LuaAPI.lua_tostring(L, 3);
gen_to_be_invoked.addCallbackParameter( _key, _value );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_addPartnerParameter(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1);
{
string _key = LuaAPI.lua_tostring(L, 2);
string _value = LuaAPI.lua_tostring(L, 3);
gen_to_be_invoked.addPartnerParameter( _key, _value );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_setTransactionId(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1);
{
string _transactionId = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.setTransactionId( _transactionId );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_setCallbackId(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1);
{
string _callbackId = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.setCallbackId( _callbackId );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}