Beispiel #1
0
    public static int get_m_isOpened(IntPtr l)
    {
        int result;

        try
        {
            BattleTreasureState battleTreasureState = (BattleTreasureState)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleTreasureState.m_isOpened);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            BattleTreasureState o = new BattleTreasureState();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #3
0
    public static int set_m_battleTreasureInfo(IntPtr l)
    {
        int result;

        try
        {
            BattleTreasureState          battleTreasureState = (BattleTreasureState)LuaObject.checkSelf(l);
            ConfigDataBattleTreasureInfo battleTreasureInfo;
            LuaObject.checkType <ConfigDataBattleTreasureInfo>(l, 2, out battleTreasureInfo);
            battleTreasureState.m_battleTreasureInfo = battleTreasureInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #4
0
    public static int set_m_isGain(IntPtr l)
    {
        int result;

        try
        {
            BattleTreasureState battleTreasureState = (BattleTreasureState)LuaObject.checkSelf(l);
            bool isGain;
            LuaObject.checkType(l, 2, out isGain);
            battleTreasureState.m_isGain = isGain;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }