#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 OperationLogCollectWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(OperationLogCollect);
|
Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecordLauchEvent", _m_RecordLauchEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecordEvent", _m_RecordEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecordDeviceDetails", _m_RecordDeviceDetails);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "BugReport", _m_BugReport);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChatReport", _m_ChatReport);
|
|
|
|
|
|
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) == 1)
|
{
|
|
OperationLogCollect gen_ret = new OperationLogCollect();
|
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 OperationLogCollect constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RecordLauchEvent(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
OperationLogCollect gen_to_be_invoked = (OperationLogCollect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __step = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RecordLauchEvent( __step );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RecordEvent(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
OperationLogCollect gen_to_be_invoked = (OperationLogCollect)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int __step = LuaAPI.xlua_tointeger(L, 2);
|
uint _coin = LuaAPI.xlua_touint(L, 3);
|
|
gen_to_be_invoked.RecordEvent( __step, _coin );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int __step = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RecordEvent( __step );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to OperationLogCollect.RecordEvent!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RecordDeviceDetails(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
OperationLogCollect gen_to_be_invoked = (OperationLogCollect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RecordDeviceDetails( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_BugReport(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
OperationLogCollect gen_to_be_invoked = (OperationLogCollect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __title = LuaAPI.lua_tostring(L, 2);
|
string __content = LuaAPI.lua_tostring(L, 3);
|
|
gen_to_be_invoked.BugReport( __title, __content );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ChatReport(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
OperationLogCollect gen_to_be_invoked = (OperationLogCollect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _content = LuaAPI.lua_tostring(L, 2);
|
string _channelName = LuaAPI.lua_tostring(L, 3);
|
string _toPlayer = LuaAPI.lua_tostring(L, 4);
|
ChatInfoType _chatType;translator.Get(L, 5, out _chatType);
|
|
gen_to_be_invoked.ChatReport( _content, _channelName, _toPlayer, _chatType );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
}
|
}
|