Example #1
0
    static int set_DemageChangeTargetType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SkillBase obj = (SkillBase)o;
            DemageAdditionOrReductionTargetType arg0 = (DemageAdditionOrReductionTargetType)ToLua.CheckObject(L, 2, typeof(DemageAdditionOrReductionTargetType));
            obj.DemageChangeTargetType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DemageChangeTargetType on a nil value" : e.Message));
        }
    }
Example #2
0
    static int get_DemageChangeTargetType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SkillBase obj = (SkillBase)o;
            DemageAdditionOrReductionTargetType ret = obj.DemageChangeTargetType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DemageChangeTargetType on a nil value" : e.Message));
        }
    }