// Token: 0x06003B61 RID: 15201 RVA: 0x0010F5E4 File Offset: 0x0010D7E4
 public static BusinessCardHeroSet FromProtocol(ProBusinessCardHeroSet pbHeroSet)
 {
     return(new BusinessCardHeroSet
     {
         HeroId = pbHeroSet.HeroId,
         PositionIndex = pbHeroSet.PositionIndex,
         Action = (HeroActionType)pbHeroSet.Action,
         Direction = (HeroDirectionType)pbHeroSet.Direction
     });
 }
Beispiel #2
0
    public static int ToProtocol_s(IntPtr l)
    {
        int result;

        try
        {
            BusinessCardHeroSet heroSet;
            LuaObject.checkType <BusinessCardHeroSet>(l, 1, out heroSet);
            ProBusinessCardHeroSet o = BusinessCardHeroSet.ToProtocol(heroSet);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }