Ejemplo n.º 1
0
 // Token: 0x060050B7 RID: 20663 RVA: 0x00181B34 File Offset: 0x0017FD34
 public static PlayerOutOfBagItem FromPB(ProResource pbResource)
 {
     PlayerOutOfBagItem playerOutOfBagItem = new PlayerOutOfBagItem();
     playerOutOfBagItem.HeadFrames.AddRange(pbResource.HeadFrames);
     playerOutOfBagItem.HeroSkinIds.AddRange(pbResource.HeroSkinIds);
     playerOutOfBagItem.SoldierSkinIds.AddRange(pbResource.SoldierSkinIds);
     playerOutOfBagItem.EquipmentIds.AddRange(pbResource.EquipmentIds);
     foreach (ProMonthCard pbMonthCard in pbResource.MonthCards)
     {
         playerOutOfBagItem.MonthCards.Add(MonthCard.FromPB(pbMonthCard));
     }
     return playerOutOfBagItem;
 }
Ejemplo n.º 2
0
 // Token: 0x060050B6 RID: 20662 RVA: 0x00181A80 File Offset: 0x0017FC80
 public static ProResource ToPB(PlayerOutOfBagItem resource)
 {
     ProResource proResource = new ProResource();
     proResource.HeadFrames.AddRange(resource.HeadFrames);
     proResource.HeroSkinIds.AddRange(resource.HeroSkinIds);
     proResource.SoldierSkinIds.AddRange(resource.SoldierSkinIds);
     proResource.EquipmentIds.AddRange(resource.EquipmentIds);
     foreach (MonthCard monthCard in resource.MonthCards)
     {
         proResource.MonthCards.Add(MonthCard.ToPB(monthCard));
     }
     return proResource;
 }
Ejemplo n.º 3
0
    public static int ToPB_s(IntPtr l)
    {
        int result;

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