static int _CreateOneByOne_FightSkill(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { OneByOne.FightSkill obj = new OneByOne.FightSkill(); LuaScriptMgr.PushObject(L, obj); return(1); } else if (count == 10) { int arg0 = (int)LuaScriptMgr.GetNumber(L, 1); int arg1 = (int)LuaScriptMgr.GetNumber(L, 2); int arg2 = (int)LuaScriptMgr.GetNumber(L, 3); int arg3 = (int)LuaScriptMgr.GetNumber(L, 4); int arg4 = (int)LuaScriptMgr.GetNumber(L, 5); float arg5 = (float)LuaScriptMgr.GetNumber(L, 6); string arg6 = LuaScriptMgr.GetString(L, 7); string arg7 = LuaScriptMgr.GetString(L, 8); Constans.SkillTarget arg8 = (Constans.SkillTarget)LuaScriptMgr.GetNetObject(L, 9, typeof(Constans.SkillTarget)); Constans.SkillType arg9 = (Constans.SkillType)LuaScriptMgr.GetNetObject(L, 10, typeof(Constans.SkillType)); OneByOne.FightSkill obj = new OneByOne.FightSkill(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.FightSkill.New"); } return(0); }
static int SetSkill(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); SkillButton obj = (SkillButton)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SkillButton"); OneByOne.FightSkill arg0 = (OneByOne.FightSkill)LuaScriptMgr.GetNetObject(L, 2, typeof(OneByOne.FightSkill)); obj.SetSkill(arg0); return(0); }
static int ActiveTip(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); SkillTipSingleton obj = (SkillTipSingleton)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SkillTipSingleton"); OneByOne.FightSkill arg0 = (OneByOne.FightSkill)LuaScriptMgr.GetNetObject(L, 2, typeof(OneByOne.FightSkill)); Vector3 arg1 = LuaScriptMgr.GetVector3(L, 3); obj.ActiveTip(arg0, arg1); return(0); }
static int get_id(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightSkill obj = (OneByOne.FightSkill)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name id"); } else { LuaDLL.luaL_error(L, "attempt to index id on a nil value"); } } LuaScriptMgr.Push(L, obj.id); return(1); }
static int set_type(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightSkill obj = (OneByOne.FightSkill)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name type"); } else { LuaDLL.luaL_error(L, "attempt to index type on a nil value"); } } obj.type = (Constans.SkillType)LuaScriptMgr.GetNetObject(L, 3, typeof(Constans.SkillType)); return(0); }
static int set_info(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightSkill obj = (OneByOne.FightSkill)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name info"); } else { LuaDLL.luaL_error(L, "attempt to index info on a nil value"); } } obj.info = LuaScriptMgr.GetString(L, 3); return(0); }
static int set_range(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightSkill obj = (OneByOne.FightSkill)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name range"); } else { LuaDLL.luaL_error(L, "attempt to index range on a nil value"); } } obj.range = (float)LuaScriptMgr.GetNumber(L, 3); return(0); }