Example #1
0
    public static int PraiseHeroCommentEntry(IntPtr l)
    {
        int result;

        try
        {
            CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            ulong entryInstanceId;
            LuaObject.checkType(l, 3, out entryInstanceId);
            long lastUpdateTime;
            LuaObject.checkType(l, 4, out lastUpdateTime);
            int i = commentComponent.PraiseHeroCommentEntry(heroId, entryInstanceId, lastUpdateTime);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }