#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 HangUpSetModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(HangUpSetModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 8, 4, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLoginHpSet", _m_GetLoginHpSet);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLoginBoolSet", _m_GetLoginBoolSet);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHpSet", _m_SetHpSet);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHpSet", _m_GetHpSet);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoolSetStr", _m_SetBoolSetStr);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBool", _m_GetBool);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOfflinePluginTime", _m_SetOfflinePluginTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOfflinePluginTimeStr", _m_GetOfflinePluginTimeStr);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxOfflinePluginTime", _g_get_maxOfflinePluginTime);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hpSet", _g_get_hpSet);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hangUpSetDict", _g_get_hangUpSetDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "offlinePluginTime", _g_get_offlinePluginTime);
|
|
|
|
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)
|
{
|
|
HangUpSetModel gen_ret = new HangUpSetModel();
|
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 HangUpSetModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetLoginHpSet(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.GetLoginHpSet( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetLoginBoolSet(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.GetLoginBoolSet( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetHpSet(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
float _value = (float)LuaAPI.lua_tonumber(L, 2);
|
|
gen_to_be_invoked.SetHpSet( _value );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetHpSet(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
float gen_ret = gen_to_be_invoked.GetHpSet( );
|
LuaAPI.lua_pushnumber(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_SetBoolSetStr(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HangUpAutoBoolType _dropType;translator.Get(L, 2, out _dropType);
|
bool _isOpen = LuaAPI.lua_toboolean(L, 3);
|
|
gen_to_be_invoked.SetBoolSetStr( _dropType, _isOpen );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetBool(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HangUpAutoBoolType _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.GetBool( _type );
|
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_SetOfflinePluginTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _time = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.SetOfflinePluginTime( _time );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetOfflinePluginTimeStr(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
string gen_ret = gen_to_be_invoked.GetOfflinePluginTimeStr( );
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
return 1;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_maxOfflinePluginTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxOfflinePluginTime);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_hpSet(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.hpSet);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_hangUpSetDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.hangUpSetDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_offlinePluginTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HangUpSetModel gen_to_be_invoked = (HangUpSetModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.offlinePluginTime);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
|
|
|
|
}
|
}
|