Ejemplo n.º 1
0
 // Token: 0x060050C0 RID: 20672 RVA: 0x00181C60 File Offset: 0x0017FE60
 public static MonthCard FromPB(ProMonthCard pbMonthCard)
 {
     return(new MonthCard
     {
         CardId = pbMonthCard.MonthCardId,
         ExpiredTime = new DateTime(pbMonthCard.ExpiredTime)
     });
 }
Ejemplo n.º 2
0
    public static int ToPB_s(IntPtr l)
    {
        int result;

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