c1_unity/Assets/XLua/Gen/BF_BIReportWrap.cs
2023-04-03 11:04:31 +08:00

356 lines
10 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 BFBIReportWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.BIReport);
Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUri", _m_SetUri);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasUri", _m_HasUri);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Post", _m_Post);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostWithURL", _m_PostWithURL);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "BF.BIReport does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Create_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = BF.BIReport.Create( );
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_Init(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Init( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Destroy(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Destroy( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Update(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Update( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LateUpdate(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.LateUpdate( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetMono(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour));
gen_to_be_invoked.SetMono( _mono );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetUri(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
string _uri = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.SetUri( _uri );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_HasUri(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.HasUri( );
LuaAPI.lua_pushboolean(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_Post(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
string _data = LuaAPI.lua_tostring(L, 2);
long _offset = LuaAPI.lua_toint64(L, 3);
System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse> _callback = translator.GetDelegate<System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse>>(L, 4);
gen_to_be_invoked.Post( _data, _offset, _callback );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_PostWithURL(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1);
{
string _url = LuaAPI.lua_tostring(L, 2);
string _data = LuaAPI.lua_tostring(L, 3);
System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse> _callback = translator.GetDelegate<System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse>>(L, 4);
gen_to_be_invoked.PostWithURL( _url, _data, _callback );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}