#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 SnxxzUIRewardPreviewGroupWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.RewardPreviewGroup);
|
Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Display", _m_Display);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "LuaDisplay", _m_LuaDisplay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Hide", _m_Hide);
|
|
|
|
|
|
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)
|
{
|
|
Snxxz.UI.RewardPreviewGroup gen_ret = new Snxxz.UI.RewardPreviewGroup();
|
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 Snxxz.UI.RewardPreviewGroup constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Display(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RewardPreviewGroup gen_to_be_invoked = (Snxxz.UI.RewardPreviewGroup)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<Snxxz.UI.Item>>(L, 2))
|
{
|
System.Collections.Generic.List<Snxxz.UI.Item> __items = (System.Collections.Generic.List<Snxxz.UI.Item>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Snxxz.UI.Item>));
|
|
gen_to_be_invoked.Display( __items );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& translator.Assignable<int[]>(L, 2))
|
{
|
int[] __itemIds = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
gen_to_be_invoked.Display( __itemIds );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RewardPreviewGroup.Display!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_LuaDisplay(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RewardPreviewGroup gen_to_be_invoked = (Snxxz.UI.RewardPreviewGroup)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& translator.Assignable<int[]>(L, 2))
|
{
|
int[] _itemIds = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
gen_to_be_invoked.LuaDisplay( _itemIds );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 3&& translator.Assignable<int[]>(L, 2)&& translator.Assignable<int[]>(L, 3))
|
{
|
int[] _itemIds = (int[])translator.GetObject(L, 2, typeof(int[]));
|
int[] _itemCounts = (int[])translator.GetObject(L, 3, typeof(int[]));
|
|
gen_to_be_invoked.LuaDisplay( _itemIds, _itemCounts );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RewardPreviewGroup.LuaDisplay!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Hide(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RewardPreviewGroup gen_to_be_invoked = (Snxxz.UI.RewardPreviewGroup)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Hide( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
}
|
}
|