Esempio n. 1
0
    public static int get_Id(IntPtr l)
    {
        int result;

        try
        {
            CommonBattleProperty commonBattleProperty = (CommonBattleProperty)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)commonBattleProperty.Id);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            CommonBattleProperty o = new CommonBattleProperty();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 3
0
    public static int PBCommonBattlePropertyToCommonBattleProperty_s(IntPtr l)
    {
        int result;

        try
        {
            ProCommonBattleProperty pbProperty;
            LuaObject.checkType <ProCommonBattleProperty>(l, 1, out pbProperty);
            CommonBattleProperty o = CommonBattleProperty.PBCommonBattlePropertyToCommonBattleProperty(pbProperty);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 4
0
    public static int set_Value(IntPtr l)
    {
        int result;

        try
        {
            CommonBattleProperty commonBattleProperty = (CommonBattleProperty)LuaObject.checkSelf(l);
            int value;
            LuaObject.checkType(l, 2, out value);
            commonBattleProperty.Value = value;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 5
0
    public static int set_Id(IntPtr l)
    {
        int result;

        try
        {
            CommonBattleProperty commonBattleProperty = (CommonBattleProperty)LuaObject.checkSelf(l);
            PropertyModifyType   id;
            LuaObject.checkEnum <PropertyModifyType>(l, 2, out id);
            commonBattleProperty.Id = id;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }