Esempio n. 1
0
    static int set_attackableType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.SkillData obj  = (Logic.Skill.Model.SkillData)o;
            Logic.Enums.AttackableType  arg0 = (Logic.Enums.AttackableType)ToLua.CheckObject(L, 2, typeof(Logic.Enums.AttackableType));
            obj.attackableType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index attackableType on a nil value" : e.Message));
        }
    }
Esempio n. 2
0
    static int get_attackableType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.SkillData obj = (Logic.Skill.Model.SkillData)o;
            Logic.Enums.AttackableType  ret = obj.attackableType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index attackableType on a nil value" : e.Message));
        }
    }