コード例 #1
0
    public static int get_RafflePools(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionRaffle.RafflePools);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #2
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            dataSectionRaffle.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle o = new DataSectionRaffle();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #4
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            object            o = dataSectionRaffle.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #5
0
    public static int InitRafflePools(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            List <RafflePool> rafflePools;
            LuaObject.checkType <List <RafflePool> >(l, 2, out rafflePools);
            dataSectionRaffle.InitRafflePools(rafflePools);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #6
0
    public static int RemoveRafflePool(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            int poolId;
            LuaObject.checkType(l, 2, out poolId);
            dataSectionRaffle.RemoveRafflePool(poolId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #7
0
    public static int GetRafflePool(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            int rafflePoolId;
            LuaObject.checkType(l, 2, out rafflePoolId);
            RafflePool rafflePool = dataSectionRaffle.GetRafflePool(rafflePoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, rafflePool);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #8
0
    public static int Drawed(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            RafflePool        pool;
            LuaObject.checkType <RafflePool>(l, 2, out pool);
            int darwedRaffleId;
            LuaObject.checkType(l, 3, out darwedRaffleId);
            dataSectionRaffle.Drawed(pool, darwedRaffleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }