Class ArticleCollection

Create an article collection. It likes ChapterArticle, but support article unlock.

Constructors

  • Parameters

    • id: string

      Id of the collection.

    • title: string | RawMessage

      Title of the collection.

    • body: string | RawMessage

      Body of the collection.

    • displayCondition: DisplayCondition

      Control when collection is displayed.

    • articles: (Article | ChapterArticle)[]

      Articles in the collection.

    Returns ArticleCollection

Properties

articles: (Article | ChapterArticle)[]

Articles in the collection.

body: string | RawMessage

Body of the collection.

displayCondition: DisplayCondition

Control when collection is displayed.

id: string

Id of the collection.

title: string | RawMessage

Title of the collection.

Methods

  • Display the reading to a player.

    Parameters

    • player: Player

    Returns void

  • Registry the prop.

    Returns void

    Use Register.articleRegistry() to registry the prop