Skip to content

API > Serialize

Class: Serialize

序列化类

Contents

Constructors

new Serialize()

new Serialize(): Serialize

Methods

blockquote()

blockquote(node): Narration

处理引用块

Parameters

node: Blockquote

Source

packages/parser/src/Serialize.ts:52


code()

code(node): undefined | Code

处理代码块

Parameters

node: Code

Source

packages/parser/src/Serialize.ts:66


heading()

heading(node): Heading

处理标题

Parameters

node: Heading

Source

packages/parser/src/Serialize.ts:42


list()

list(node): undefined | Choices

handle list for choice

  • [x] xxx

Parameters

node: List

Source

packages/parser/src/Serialize.ts:136


paragraph()

paragraph(node): Unknown | Text | Dialog | SceneInfo | Narration

处理段落

Parameters

node: Paragraph

Source

packages/parser/src/Serialize.ts:104


parse()

parse(child): undefined | Item

解析

Parameters

child: RootContent

Source

packages/parser/src/Serialize.ts:14


text()

text(node): Text | Dialog | SceneInfo | Narration

处理文本 更多的扩展语法在此实现(从普通的段落文本中进行解析)

Parameters

node: Text

Source

packages/parser/src/Serialize.ts:128


Generated using typedoc-plugin-markdown and TypeDoc