static int _CreateBattleSystem_SkillModule_Skill(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { BattleSystem.ObjectModule.UnitBase arg0 = (BattleSystem.ObjectModule.UnitBase)ToLua.CheckObject <BattleSystem.ObjectModule.UnitBase>(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); BattleSystem.SkillModule.Skill obj = new BattleSystem.SkillModule.Skill(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 3) { BattleSystem.ObjectModule.UnitBase arg0 = (BattleSystem.ObjectModule.UnitBase)ToLua.CheckObject <BattleSystem.ObjectModule.UnitBase>(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); BattleSystem.SkillModule.Skill obj = new BattleSystem.SkillModule.Skill(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: BattleSystem.SkillModule.Skill.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void TestSkill() { Debug.InitLogger(new TestLogger()); SkillModule.Skill skill = new SkillModule.Skill(null, 0, 1); skill.Cast(); while (true) { skill.Update(0.1f); } }
static int OnSkillOver(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1); obj.OnSkillOver(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Update(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.Update(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Status(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; BattleSystem.SkillModule.SkillStatus ret = obj.Status; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Status on a nil value")); } }
static int get_AutoCast(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; bool ret = obj.AutoCast; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index AutoCast on a nil value")); } }
static int get_Level(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; int ret = obj.Level; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Level on a nil value")); } }
static int get_Duration(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; float ret = obj.Duration; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Duration on a nil value")); } }
static int get_Desc(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; string ret = obj.Desc; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Desc on a nil value")); } }
static int get_Owner(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)o; BattleSystem.ObjectModule.UnitBase ret = obj.Owner; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Owner on a nil value")); } }
static int Cast(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1); obj.Cast(); return(0); } else if (count == 2) { BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1); BattleSystem.ObjectModule.UnitBase arg0 = (BattleSystem.ObjectModule.UnitBase)ToLua.CheckObject <BattleSystem.ObjectModule.UnitBase>(L, 2); obj.Cast(arg0); return(0); } else if (count == 3) { BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.Cast(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BattleSystem.SkillModule.Skill.Cast")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public abstract SkillAction Copy(Skill skill);