#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 GodBeastModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(GodBeastModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 10, 11, 11);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AbsorbEventUpdate", _m_AbsorbEventUpdate);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllEnhancedProperties", _m_AllEnhancedProperties);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SiteEnhancementAttribute", _m_SiteEnhancementAttribute);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFullLevel", _m_IsFullLevel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNeedEquipment", _m_IsNeedEquipment);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AbsorbEvent", _e_AbsorbEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Absorption_Dic", _g_get_Absorption_Dic);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemInde", _g_get_ItemInde);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Crystal_ItemModel", _g_get_Crystal_ItemModel);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemPos", _g_get_ItemPos);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemPlace", _g_get_ItemPlace);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "QualityLimit", _g_get_QualityLimit);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "GodBeastRedPointDic", _g_get_GodBeastRedPointDic);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "redPointStre1", _g_get_redPointStre1);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "DogZBagIndex", _g_get_DogZBagIndex);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsToggleBool", _g_get_IsToggleBool);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IndexId", _g_get_IndexId);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Absorption_Dic", _s_set_Absorption_Dic);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemInde", _s_set_ItemInde);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Crystal_ItemModel", _s_set_Crystal_ItemModel);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemPos", _s_set_ItemPos);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemPlace", _s_set_ItemPlace);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "QualityLimit", _s_set_QualityLimit);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "GodBeastRedPointDic", _s_set_GodBeastRedPointDic);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "redPointStre1", _s_set_redPointStre1);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "DogZBagIndex", _s_set_DogZBagIndex);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsToggleBool", _s_set_IsToggleBool);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "IndexId", _s_set_IndexId);
|
|
|
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)
|
{
|
|
GodBeastModel gen_ret = new GodBeastModel();
|
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 GodBeastModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)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_OnBeforePlayerDataInitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnBeforePlayerDataInitialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnPlayerLoginOk(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnPlayerLoginOk( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.UnInit( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_AbsorbEventUpdate(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.AbsorbEventUpdate( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_AllEnhancedProperties(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _GodBeastNumber = LuaAPI.xlua_tointeger(L, 2);
|
|
System.Collections.Generic.Dictionary<int, int> gen_ret = gen_to_be_invoked.AllEnhancedProperties( _GodBeastNumber );
|
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_SiteEnhancementAttribute(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
PackType _PackTypeGodBeast;translator.Get(L, 2, out _PackTypeGodBeast);
|
int _GodBeastIndex = LuaAPI.xlua_tointeger(L, 3);
|
|
System.Collections.Generic.Dictionary<int, int> gen_ret = gen_to_be_invoked.SiteEnhancementAttribute( _PackTypeGodBeast, _GodBeastIndex );
|
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_IsFullLevel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.IsFullLevel( );
|
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_IsNeedEquipment(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.IsNeedEquipment( );
|
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 _g_get_Absorption_Dic(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.Absorption_Dic);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_ItemInde(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemInde);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_Crystal_ItemModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.Crystal_ItemModel);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_ItemPos(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemPos);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_ItemPlace(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemPlace);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_QualityLimit(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.QualityLimit);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_GodBeastRedPointDic(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.GodBeastRedPointDic);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_redPointStre1(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.redPointStre1);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_DogZBagIndex(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DogZBagIndex);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IsToggleBool(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsToggleBool);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IndexId(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.IndexId);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_Absorption_Dic(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.Absorption_Dic = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, int>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_ItemInde(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.ItemInde = 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_Crystal_ItemModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.Crystal_ItemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_ItemPos(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.ItemPos = 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_ItemPlace(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.ItemPlace = 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_QualityLimit(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.QualityLimit = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, int>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_GodBeastRedPointDic(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.GodBeastRedPointDic = (System.Collections.Generic.Dictionary<int, Snxxz.UI.Redpoint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, Snxxz.UI.Redpoint>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_redPointStre1(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.redPointStre1 = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_DogZBagIndex(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.DogZBagIndex = 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_IsToggleBool(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.IsToggleBool = LuaAPI.lua_toboolean(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_IndexId(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.IndexId = 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 _e_AbsorbEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.AbsorbEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.AbsorbEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to GodBeastModel.AbsorbEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|