Ejemplo n.º 1
0
 // Token: 0x06004F92 RID: 20370 RVA: 0x0017F288 File Offset: 0x0017D488
 public static GiftStoreOperationalGoods FromPB(ProGiftStoreOperationalGoods pbGoods)
 {
     return(new GiftStoreOperationalGoods
     {
         GoodsId = pbGoods.GoodsId,
         SaleStartTime = new DateTime(pbGoods.SaleStartTime),
         SaleEndTime = new DateTime(pbGoods.SaleEndTime)
     });
 }
    public static int ToPB_s(IntPtr l)
    {
        int result;

        try
        {
            GiftStoreOperationalGoods goods;
            LuaObject.checkType <GiftStoreOperationalGoods>(l, 1, out goods);
            ProGiftStoreOperationalGoods o = GiftStoreOperationalGoods.ToPB(goods);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }