#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 ComposeWinModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(ComposeWinModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 27, 8, 5);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetModel", _m_ResetModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComposeJobLimit", _m_IsComposeJobLimit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstTypeModel", _m_GetFirstTypeModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSecondTypeModel", _m_GetSecondTypeModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetThirdTypeModellist", _m_GetThirdTypeModellist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTicketId", _m_GetTicketId);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCurComposeModel", _m_SetCurComposeModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughUnfixedMat", _m_IsEnoughUnfixedMat);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughFixedMat", _m_IsEnoughFixedMat);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughMoney", _m_IsEnoughMoney);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendComposeRequest", _m_SendComposeRequest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendComposeQuest", _m_SendComposeQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBindByFixedAndUnFixedMat", _m_IsBindByFixedAndUnFixedMat);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBindOrNoBindMinCnt", _m_GetBindOrNoBindMinCnt);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComposeSuccessRate", _m_GetComposeSuccessRate);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComposeTicketByType", _m_IsComposeTicketByType);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckComposeItemById", _m_CheckComposeItemById);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsComposeByType", _m_CheckIsComposeByType);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJumpToModel", _m_SetJumpToModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetJumpToModel", _m_ResetJumpToModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetComposeTypeRed", _m_SetComposeTypeRed);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshComposeRed", _m_RefreshComposeRed);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetModelEvent", _e_ResetModelEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurComposeModel", _g_get_CurComposeModel);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondType", _g_get_secondType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "thirdType", _g_get_thirdType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeRed", _g_get_composeRed);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeBtnRed", _g_get_composeBtnRed);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeToolRed", _g_get_composeToolRed);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondTypeRedDict", _g_get_secondTypeRedDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "thirdTypeRedDict", _g_get_thirdTypeRedDict);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeRed", _s_set_composeRed);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeBtnRed", _s_set_composeBtnRed);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeToolRed", _s_set_composeToolRed);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondTypeRedDict", _s_set_secondTypeRedDict);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "thirdTypeRedDict", _s_set_thirdTypeRedDict);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSE_REDKEY", ComposeWinModel.COMPOSE_REDKEY);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSETOOL_REDKEY", ComposeWinModel.COMPOSETOOL_REDKEY);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSEBTN_REDKEY", ComposeWinModel.COMPOSEBTN_REDKEY);
|
|
|
|
|
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)
|
{
|
|
ComposeWinModel gen_ret = new ComposeWinModel();
|
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 ComposeWinModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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_OnBeforePlayerDataInitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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_ResetModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ResetModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsComposeJobLimit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _composeId = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.IsComposeJobLimit( _composeId );
|
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_GetFirstTypeModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<TableConfig.ItemCompoundConfig>>> gen_ret = gen_to_be_invoked.GetFirstTypeModel( _firstType );
|
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_GetSecondTypeModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<TableConfig.ItemCompoundConfig>> gen_ret = gen_to_be_invoked.GetSecondTypeModel( _firstType, _secondType );
|
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_GetThirdTypeModellist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
int _thirdType = LuaAPI.xlua_tointeger(L, 4);
|
|
System.Collections.Generic.List<TableConfig.ItemCompoundConfig> gen_ret = gen_to_be_invoked.GetThirdTypeModellist( _firstType, _secondType, _thirdType );
|
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_GetTicketId(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
int _thirdType = LuaAPI.xlua_tointeger(L, 4);
|
|
int gen_ret = gen_to_be_invoked.GetTicketId( _firstType, _secondType, _thirdType );
|
LuaAPI.xlua_pushinteger(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_SetCurComposeModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
|
gen_to_be_invoked.SetCurComposeModel( _compoundModel );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsEnoughUnfixedMat(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
|
bool gen_ret = gen_to_be_invoked.IsEnoughUnfixedMat( _compoundModel );
|
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_IsEnoughFixedMat(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _config = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
|
bool gen_ret = gen_to_be_invoked.IsEnoughFixedMat( _config );
|
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_IsEnoughMoney(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
|
bool gen_ret = gen_to_be_invoked.IsEnoughMoney( _compoundModel );
|
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_SendComposeRequest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 6&& translator.Assignable<TableConfig.ItemCompoundConfig>(L, 2)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 3)&& translator.Assignable<UIEffect>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _fixedItemIndexDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect));
|
int _composeCount = LuaAPI.xlua_tointeger(L, 5);
|
int _successRate = LuaAPI.xlua_tointeger(L, 6);
|
|
gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect, _composeCount, _successRate );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 5&& translator.Assignable<TableConfig.ItemCompoundConfig>(L, 2)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 3)&& translator.Assignable<UIEffect>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _fixedItemIndexDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect));
|
int _composeCount = LuaAPI.xlua_tointeger(L, 5);
|
|
gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect, _composeCount );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 4&& translator.Assignable<TableConfig.ItemCompoundConfig>(L, 2)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 3)&& translator.Assignable<UIEffect>(L, 4))
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _fixedItemIndexDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect));
|
|
gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to ComposeWinModel.SendComposeRequest!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendComposeQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
UIEffect _composEffect = (UIEffect)translator.GetObject(L, 3, typeof(UIEffect));
|
byte[] _unfixedIndexArray = LuaAPI.lua_tobytes(L, 4);
|
int _composeCount = LuaAPI.xlua_tointeger(L, 5);
|
|
gen_to_be_invoked.SendComposeQuest( _compoundModel, _composEffect, _unfixedIndexArray, _composeCount );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsBindByFixedAndUnFixedMat(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>> _fixedMat = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>));
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>> _unfixedMat = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>));
|
|
bool gen_ret = gen_to_be_invoked.IsBindByFixedAndUnFixedMat( _fixedMat, _unfixedMat );
|
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_GetBindOrNoBindMinCnt(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _minBindCnt;
|
int _minNoBindCnt;
|
|
gen_to_be_invoked.GetBindOrNoBindMinCnt( out _minBindCnt, out _minNoBindCnt );
|
LuaAPI.xlua_pushinteger(L, _minBindCnt);
|
|
LuaAPI.xlua_pushinteger(L, _minNoBindCnt);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetComposeSuccessRate(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemCompoundConfig _tagItemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig));
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel));
|
int _successRate = LuaAPI.xlua_tointeger(L, 4);
|
|
int gen_ret = gen_to_be_invoked.GetComposeSuccessRate( _tagItemCompound, _itemModel, _successRate );
|
LuaAPI.xlua_pushinteger(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_IsComposeTicketByType(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _secondType = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.IsComposeTicketByType( _secondType );
|
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_CheckComposeItemById(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _jumpId;
|
|
bool gen_ret = gen_to_be_invoked.CheckComposeItemById( _itemId, out _jumpId );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, _jumpId);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckIsComposeByType(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
int _thirdType = LuaAPI.xlua_tointeger(L, 4);
|
|
bool gen_ret = gen_to_be_invoked.CheckIsComposeByType( _firstType, _secondType, _thirdType );
|
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_SetJumpToModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
ComposeFuncType _type;translator.Get(L, 2, out _type);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
int _thirdType = LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.SetJumpToModel( _type, _secondType, _thirdType );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ResetJumpToModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ResetJumpToModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetComposeTypeRed(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetComposeTypeRed( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshComposeRed(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RefreshComposeRed( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_CurComposeModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.CurComposeModel);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_secondType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.secondType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_thirdType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.thirdType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_composeRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.composeRed);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_composeBtnRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.composeBtnRed);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_composeToolRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.composeToolRed);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_secondTypeRedDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.secondTypeRedDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_thirdTypeRedDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.thirdTypeRedDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_composeRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.composeRed = (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_composeBtnRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.composeBtnRed = (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_composeToolRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.composeToolRed = (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_secondTypeRedDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.secondTypeRedDict = (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_thirdTypeRedDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.thirdTypeRedDict = (System.Collections.Generic.Dictionary<string, Snxxz.UI.Redpoint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, Snxxz.UI.Redpoint>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_ResetModelEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.ResetModelEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.ResetModelEvent -= 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 ComposeWinModel.ResetModelEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|