static int Initialize(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { FirClient.View.NPCView obj = (FirClient.View.NPCView)ToLua.CheckObject <FirClient.View.NPCView>(L, 1); FirClient.Data.NPCData arg0 = (FirClient.Data.NPCData)ToLua.CheckObject <FirClient.Data.NPCData>(L, 2); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3); obj.Initialize(arg0, arg1); return(0); } else if (count == 4) { FirClient.View.NPCView obj = (FirClient.View.NPCView)ToLua.CheckObject <FirClient.View.NPCView>(L, 1); FirClient.Data.NPCData arg0 = (FirClient.Data.NPCData)ToLua.CheckObject <FirClient.Data.NPCData>(L, 2); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3); System.Action arg2 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 4); obj.Initialize(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FirClient.View.NPCView.Initialize")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_NpcData(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.View.NPCView obj = (FirClient.View.NPCView)o; FirClient.Data.NPCData arg0 = (FirClient.Data.NPCData)ToLua.CheckObject <FirClient.Data.NPCData>(L, 2); obj.NpcData = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index NpcData on a nil value")); } }
static int get_NpcData(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FirClient.View.NPCView obj = (FirClient.View.NPCView)o; FirClient.Data.NPCData ret = obj.NpcData; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index NpcData on a nil value")); } }