#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 SnxxzUIRuneModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.RuneModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 39, 9, 2);
|
|
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, "TryGetRuneHoleItem", _m_TryGetRuneHoleItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetRuneHoleCondition", _m_TryGetRuneHoleCondition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetRunePropertys", _m_TryGetRunePropertys);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetComposeRuneCount", _m_TryGetComposeRuneCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryEquipRuneByColor", _m_TryEquipRuneByColor);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetRedpoint", _m_TryGetRedpoint);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyValue", _m_GetPropertyValue);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRunePropertyDescription", _m_GetRunePropertyDescription);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLevelUpRequireRuneEssence", _m_GetLevelUpRequireRuneEssence);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMultiPropertyInlayCount", _m_GetMultiPropertyInlayCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMultiPropertyHoleCount", _m_GetMultiPropertyHoleCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRuneLevelBySplinters", _m_GetRuneLevelBySplinters);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRuneInlayCount", _m_GetRuneInlayCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRuneTotalCount", _m_GetRuneTotalCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnlockRunes", _m_GetUnlockRunes);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRuneHoleOpen", _m_IsRuneHoleOpen);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsMultiPropertyRune", _m_IsMultiPropertyRune);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRuneMaxLevel", _m_IsRuneMaxLevel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsUnlockAllMultiPropertyInlay", _m_IsUnlockAllMultiPropertyInlay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSameWithOtherRuneHole", _m_IsSameWithOtherRuneHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSameWithRuneHole", _m_IsSameWithRuneHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBetterRuneWithHole", _m_IsBetterRuneWithHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyLevelUpHole", _m_SatisfyLevelUpHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyInlayHole", _m_SatisfyInlayHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyInlayBetterHole", _m_SatisfyInlayBetterHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistEmptyHole", _m_ExistEmptyHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SelectRunePackItem", _m_SelectRunePackItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReceivePackage", _m_ReceivePackage);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDayRemind", _m_SetDayRemind);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "JumpToCompose", _m_JumpToCompose);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onRuneHoleRefresh", _e_onRuneHoleRefresh);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOpenNewHole", _e_onOpenNewHole);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectHoleRefresh", _e_onSelectHoleRefresh);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onRuneTowerRefresh", _e_onRuneTowerRefresh);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onJumpToCompose", _e_onJumpToCompose);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "holeState", _g_get_holeState);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "serverInited", _g_get_serverInited);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "specialHole", _g_get_specialHole);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "passRuneTowerFloor", _g_get_passRuneTowerFloor);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "unlockingSpecialHole", _g_get_unlockingSpecialHole);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectHole", _g_get_selectHole);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseRedpoint", _g_get_baseRedpoint);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "specialHoleRedpoint", _g_get_specialHoleRedpoint);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "unlockingSpecialHole", _s_set_unlockingSpecialHole);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectHole", _s_set_selectHole);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 1, 1);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RUNE_TYPE", Snxxz.UI.RuneModel.RUNE_TYPE);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RUNE_CREAMTYPE", Snxxz.UI.RuneModel.RUNE_CREAMTYPE);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RUNE_HOLE_COUNT", Snxxz.UI.RuneModel.RUNE_HOLE_COUNT);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RUNE_REDPOINT_BASE", Snxxz.UI.RuneModel.RUNE_REDPOINT_BASE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "redpointIndex", _g_get_redpointIndex);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "redpointIndex", _s_set_redpointIndex);
|
|
|
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.RuneModel gen_ret = new Snxxz.UI.RuneModel();
|
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.RuneModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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_TryGetRuneHoleItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.RuneItem _runeItem;
|
|
bool gen_ret = gen_to_be_invoked.TryGetRuneHoleItem( _hole, out _runeItem );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, _runeItem);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetRuneHoleCondition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.RuneHoleCondition _condition;
|
|
bool gen_ret = gen_to_be_invoked.TryGetRuneHoleCondition( _hole, out _condition );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, _condition);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetRunePropertys(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
System.Collections.Generic.List<int> _propertys;
|
|
bool gen_ret = gen_to_be_invoked.TryGetRunePropertys( _id, out _propertys );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, _propertys);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetComposeRuneCount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.RuneItem _item;
|
|
int gen_ret = gen_to_be_invoked.TryGetComposeRuneCount( _id, out _item );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
translator.Push(L, _item);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryEquipRuneByColor(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemColor = LuaAPI.xlua_tointeger(L, 2);
|
int _hole;
|
|
bool gen_ret = gen_to_be_invoked.TryEquipRuneByColor( _itemColor, out _hole );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, _hole);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetRedpoint(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.RuneModel.RuneHoleRedpoint _redpoint;
|
|
bool gen_ret = gen_to_be_invoked.TryGetRedpoint( _hole, out _redpoint );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, _redpoint);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetPropertyValue(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _level = LuaAPI.xlua_tointeger(L, 3);
|
int _type = LuaAPI.xlua_tointeger(L, 4);
|
|
int gen_ret = gen_to_be_invoked.GetPropertyValue( _id, _level, _type );
|
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_GetRunePropertyDescription(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _level = LuaAPI.xlua_tointeger(L, 3);
|
|
string gen_ret = gen_to_be_invoked.GetRunePropertyDescription( _id, _level );
|
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 _m_GetLevelUpRequireRuneEssence(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _level = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.GetLevelUpRequireRuneEssence( _id, _level );
|
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_GetMultiPropertyInlayCount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _tower = LuaAPI.xlua_tointeger(L, 2);
|
|
int gen_ret = gen_to_be_invoked.GetMultiPropertyInlayCount( _tower );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 1)
|
{
|
|
int gen_ret = gen_to_be_invoked.GetMultiPropertyInlayCount( );
|
LuaAPI.xlua_pushinteger(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.RuneModel.GetMultiPropertyInlayCount!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetMultiPropertyHoleCount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
int gen_ret = gen_to_be_invoked.GetMultiPropertyHoleCount( );
|
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_GetRuneLevelBySplinters(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
float _essence = (float)LuaAPI.lua_tonumber(L, 3);
|
|
int gen_ret = gen_to_be_invoked.GetRuneLevelBySplinters( _id, _essence );
|
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_GetRuneInlayCount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
int gen_ret = gen_to_be_invoked.GetRuneInlayCount( );
|
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_GetRuneTotalCount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _itemType = LuaAPI.xlua_tointeger(L, 2);
|
|
int gen_ret = gen_to_be_invoked.GetRuneTotalCount( _itemType );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 1)
|
{
|
|
int gen_ret = gen_to_be_invoked.GetRuneTotalCount( );
|
LuaAPI.xlua_pushinteger(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.RuneModel.GetRuneTotalCount!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetUnlockRunes(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetUnlockRunes( );
|
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_IsRuneHoleOpen(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
uint _state = LuaAPI.xlua_touint(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsRuneHoleOpen( _hole, _state );
|
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_IsMultiPropertyRune(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.IsMultiPropertyRune( _id );
|
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_IsRuneMaxLevel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _level = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsRuneMaxLevel( _id, _level );
|
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_IsUnlockAllMultiPropertyInlay(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _tower;
|
|
bool gen_ret = gen_to_be_invoked.IsUnlockAllMultiPropertyInlay( out _tower );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, _tower);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsSameWithOtherRuneHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _hole = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsSameWithOtherRuneHole( _id, _hole );
|
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_IsSameWithRuneHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _hole = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsSameWithRuneHole( _id, _hole );
|
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_IsBetterRuneWithHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
int _hole = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsBetterRuneWithHole( _id, _hole );
|
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_SatisfyLevelUpHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyLevelUpHole( _hole );
|
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_SatisfyInlayHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyInlayHole( _hole );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& translator.Assignable<Snxxz.UI.RuneItem>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
Snxxz.UI.RuneItem _item = (Snxxz.UI.RuneItem)translator.GetObject(L, 2, typeof(Snxxz.UI.RuneItem));
|
int _hole = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyInlayHole( _item, _hole );
|
LuaAPI.lua_pushboolean(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.RuneModel.SatisfyInlayHole!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SatisfyInlayBetterHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyInlayBetterHole( _hole );
|
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_ExistEmptyHole(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _hole;
|
|
bool gen_ret = gen_to_be_invoked.ExistEmptyHole( out _hole );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, _hole);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SelectRunePackItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.RuneItem _item = (Snxxz.UI.RuneItem)translator.GetObject(L, 2, typeof(Snxxz.UI.RuneItem));
|
int _hole = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SelectRunePackItem( _item, _hole );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ReceivePackage(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& translator.Assignable<HA31F_tagMCRuneInfo>(L, 2))
|
{
|
HA31F_tagMCRuneInfo _package = (HA31F_tagMCRuneInfo)translator.GetObject(L, 2, typeof(HA31F_tagMCRuneInfo));
|
|
gen_to_be_invoked.ReceivePackage( _package );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& translator.Assignable<HA3BA_tagMCTrialTowerInfo>(L, 2))
|
{
|
HA3BA_tagMCTrialTowerInfo _package = (HA3BA_tagMCTrialTowerInfo)translator.GetObject(L, 2, typeof(HA3BA_tagMCTrialTowerInfo));
|
|
gen_to_be_invoked.ReceivePackage( _package );
|
|
|
|
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.RuneModel.ReceivePackage!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetDayRemind(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetDayRemind( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_JumpToCompose(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.JumpToCompose( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_holeState(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushuint(L, gen_to_be_invoked.holeState);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_serverInited(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.serverInited);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_specialHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.specialHole);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_passRuneTowerFloor(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.passRuneTowerFloor);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_unlockingSpecialHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.unlockingSpecialHole);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_selectHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectHole);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_baseRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.baseRedpoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_redpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.redpoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_specialHoleRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.specialHoleRedpoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_redpointIndex(RealStatePtr L)
|
{
|
try {
|
|
LuaAPI.xlua_pushinteger(L, Snxxz.UI.RuneModel.redpointIndex);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_unlockingSpecialHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.unlockingSpecialHole = 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_selectHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.selectHole = 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_redpointIndex(RealStatePtr L)
|
{
|
try {
|
|
Snxxz.UI.RuneModel.redpointIndex = LuaAPI.xlua_tointeger(L, 1);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onRuneHoleRefresh(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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.onRuneHoleRefresh += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onRuneHoleRefresh -= 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 Snxxz.UI.RuneModel.onRuneHoleRefresh!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onOpenNewHole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)translator.FastGetCSObj(L, 1);
|
System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.onOpenNewHole += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onOpenNewHole -= 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 Snxxz.UI.RuneModel.onOpenNewHole!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onSelectHoleRefresh(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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.onSelectHoleRefresh += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onSelectHoleRefresh -= 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 Snxxz.UI.RuneModel.onSelectHoleRefresh!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onRuneTowerRefresh(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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.onRuneTowerRefresh += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onRuneTowerRefresh -= 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 Snxxz.UI.RuneModel.onRuneTowerRefresh!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onJumpToCompose(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.RuneModel gen_to_be_invoked = (Snxxz.UI.RuneModel)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.onJumpToCompose += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onJumpToCompose -= 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 Snxxz.UI.RuneModel.onJumpToCompose!");
|
return 0;
|
}
|
|
|
|
}
|
}
|