Пример #1
0
        // Token: 0x06004F14 RID: 20244 RVA: 0x0017E130 File Offset: 0x0017C330
        public static ProHeroComment HeroCommentToPBHeroComment(HeroComment comment)
        {
            ProHeroComment proHeroComment = new ProHeroComment();

            proHeroComment.LastUpdateTime = comment.LastUpdateTime;
            foreach (HeroCommentEntry entry in comment.CommentEntries)
            {
                proHeroComment.CommentEntries.Add(HeroCommentEntry.HeroCommentEntryToPBHeroCommentEntry(entry));
            }
            return(proHeroComment);
        }
Пример #2
0
        // Token: 0x06004F15 RID: 20245 RVA: 0x0017E1AC File Offset: 0x0017C3AC
        public static HeroComment PBHeroCommentToHeroComment(ProHeroComment pbComment)
        {
            HeroComment heroComment = new HeroComment();

            heroComment.LastUpdateTime = pbComment.LastUpdateTime;
            foreach (ProHeroCommentEntry pbEntry in pbComment.CommentEntries)
            {
                heroComment.CommentEntries.Add(HeroCommentEntry.PBHeroCommentEntryToHeroCommentEntry(pbEntry));
            }
            return(heroComment);
        }
    public static int HeroCommentToPBHeroComment_s(IntPtr l)
    {
        int result;

        try
        {
            HeroComment comment;
            LuaObject.checkType <HeroComment>(l, 1, out comment);
            ProHeroComment o = HeroComment.HeroCommentToPBHeroComment(comment);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }