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

302 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 BFBFAccountInfoWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.BFAccountInfo);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "code", _g_get_code);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "seq", _g_get_seq);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "uid", _g_get_uid);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "token", _g_get_token);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "gate", _g_get_gate);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ip", _g_get_ip);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bind", _g_get_bind);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "code", _s_set_code);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "seq", _s_set_seq);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "uid", _s_set_uid);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "token", _s_set_token);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "gate", _s_set_gate);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ip", _s_set_ip);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "bind", _s_set_bind);
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)
{
var gen_ret = new BF.BFAccountInfo();
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 BF.BFAccountInfo constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_code(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.code);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_seq(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.seq);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_uid(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushint64(L, gen_to_be_invoked.uid);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_token(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushstring(L, gen_to_be_invoked.token);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_gate(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushstring(L, gen_to_be_invoked.gate);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_ip(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushstring(L, gen_to_be_invoked.ip);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_bind(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.bind);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_code(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.code = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_seq(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.seq = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_uid(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.uid = LuaAPI.lua_toint64(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_token(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.token = LuaAPI.lua_tostring(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_gate(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.gate = LuaAPI.lua_tostring(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_ip(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.ip = LuaAPI.lua_tostring(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_bind(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.bind = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}