#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 MapTransferUtilityWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(MapTransferUtility);
|
Utils.BeginObjectRegister(type, L, translator, 0, 10, 6, 6);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToDazuo", _m_MoveToDazuo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckMap", _m_CheckMap);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToNPC", _m_MoveToNPC);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToLocalMapPosition", _m_MoveToLocalMapPosition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "MissionFlyTo", _m_MissionFlyTo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FlyTo", _m_FlyTo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnHeroPathFinding", _m_OnHeroPathFinding);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnHeroStopPathFind", _m_OnHeroStopPathFind);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "MapTransferDoType", _g_get_MapTransferDoType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "NpcID", _g_get_NpcID);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "conversationDistSqrt", _g_get_conversationDistSqrt);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastMoveToWorldBossNpcID", _g_get_lastMoveToWorldBossNpcID);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastMoveToWorldBossTime", _g_get_lastMoveToWorldBossTime);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMove", _g_get_forceMove);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "MapTransferDoType", _s_set_MapTransferDoType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "NpcID", _s_set_NpcID);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "conversationDistSqrt", _s_set_conversationDistSqrt);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastMoveToWorldBossNpcID", _s_set_lastMoveToWorldBossNpcID);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastMoveToWorldBossTime", _s_set_lastMoveToWorldBossTime);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMove", _s_set_forceMove);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 2);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Send_WorldTransfer", _m_Send_WorldTransfer_xlua_st_);
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "s_OnHeroLeaveFuncNpc", _g_get_s_OnHeroLeaveFuncNpc);
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "s_OnHeroStartMoveToNPC", _g_get_s_OnHeroStartMoveToNPC);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "s_OnHeroLeaveFuncNpc", _s_set_s_OnHeroLeaveFuncNpc);
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "s_OnHeroStartMoveToNPC", _s_set_s_OnHeroStartMoveToNPC);
|
|
|
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)
|
{
|
|
MapTransferUtility gen_ret = new MapTransferUtility();
|
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 MapTransferUtility constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Initialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Initialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_MoveToDazuo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _mapID = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.MoveToDazuo( _mapID );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckMap(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _mapID = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.CheckMap( _mapID );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_MoveToNPC(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _npcID = LuaAPI.xlua_tointeger(L, 2);
|
int _sid = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.MoveToNPC( _npcID, _sid );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _npcID = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.MoveToNPC( _npcID );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to MapTransferUtility.MoveToNPC!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_MoveToLocalMapPosition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
UnityEngine.Vector3 __position;translator.Get(L, 2, out __position);
|
|
gen_to_be_invoked.MoveToLocalMapPosition( __position );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_MissionFlyTo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _mapId = LuaAPI.xlua_tointeger(L, 2);
|
int _npcId = LuaAPI.xlua_tointeger(L, 3);
|
int _extField = LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.MissionFlyTo( _mapId, _npcId, _extField );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _mapId = LuaAPI.xlua_tointeger(L, 2);
|
int _npcId = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.MissionFlyTo( _mapId, _npcId );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to MapTransferUtility.MissionFlyTo!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_FlyTo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _mapID = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _pos;translator.Get(L, 3, out _pos);
|
byte _lineID = (byte)LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.FlyTo( _mapID, _pos, _lineID );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3))
|
{
|
int _mapID = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _pos;translator.Get(L, 3, out _pos);
|
|
gen_to_be_invoked.FlyTo( _mapID, _pos );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to MapTransferUtility.FlyTo!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Send_WorldTransfer_xlua_st_(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<MapTransferType>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
int _mapId = LuaAPI.xlua_tointeger(L, 1);
|
UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
|
MapTransferType _type;translator.Get(L, 3, out _type);
|
byte _lineID = (byte)LuaAPI.xlua_tointeger(L, 4);
|
int __npcId = LuaAPI.xlua_tointeger(L, 5);
|
|
bool gen_ret = MapTransferUtility.Send_WorldTransfer( _mapId, _position, _type, _lineID, __npcId );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<MapTransferType>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _mapId = LuaAPI.xlua_tointeger(L, 1);
|
UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
|
MapTransferType _type;translator.Get(L, 3, out _type);
|
byte _lineID = (byte)LuaAPI.xlua_tointeger(L, 4);
|
|
bool gen_ret = MapTransferUtility.Send_WorldTransfer( _mapId, _position, _type, _lineID );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<MapTransferType>(L, 3))
|
{
|
int _mapId = LuaAPI.xlua_tointeger(L, 1);
|
UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
|
MapTransferType _type;translator.Get(L, 3, out _type);
|
|
bool gen_ret = MapTransferUtility.Send_WorldTransfer( _mapId, _position, _type );
|
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 MapTransferUtility.Send_WorldTransfer!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnHeroPathFinding(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnHeroPathFinding( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnHeroStopPathFind(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnHeroStopPathFind( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Clear(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Clear( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_MapTransferDoType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.MapTransferDoType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_NpcID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.NpcID);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_s_OnHeroLeaveFuncNpc(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
translator.Push(L, MapTransferUtility.s_OnHeroLeaveFuncNpc);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_s_OnHeroStartMoveToNPC(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
translator.Push(L, MapTransferUtility.s_OnHeroStartMoveToNPC);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_conversationDistSqrt(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.conversationDistSqrt);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_lastMoveToWorldBossNpcID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastMoveToWorldBossNpcID);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_lastMoveToWorldBossTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lastMoveToWorldBossTime);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_forceMove(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceMove);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_MapTransferDoType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
MapTransferUtility.E_MapTransferDoType gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.MapTransferDoType = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_NpcID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.NpcID = 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_s_OnHeroLeaveFuncNpc(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
MapTransferUtility.s_OnHeroLeaveFuncNpc = translator.GetDelegate<UnityEngine.Events.UnityAction>(L, 1);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_s_OnHeroStartMoveToNPC(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
MapTransferUtility.s_OnHeroStartMoveToNPC = translator.GetDelegate<UnityEngine.Events.UnityAction>(L, 1);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_conversationDistSqrt(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.conversationDistSqrt = (float)LuaAPI.lua_tonumber(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_lastMoveToWorldBossNpcID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.lastMoveToWorldBossNpcID = 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_lastMoveToWorldBossTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.lastMoveToWorldBossTime = (float)LuaAPI.lua_tonumber(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_forceMove(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.forceMove = LuaAPI.lua_toboolean(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|