Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 4.3 KB

File metadata and controls

46 lines (31 loc) · 4.3 KB

subkt / myaa.subkt.ass / EventSection

EventSection

class EventSection : FormatSection<EventLine> (source)

Represents an events section, containing a list of EventLine lines.

Parameters

name - The name of the section, usually Events.

Constructors

Name Summary
<init> EventSection(name: String)
Represents an events section, containing a list of EventLine lines.

Properties

Name Summary
format var format: List<String>
The order of the fields in the textual representation of each line.
lineTypes val lineTypes: Set<String>
The types of lines allowed in this section, e.g. Dialogue and Comment for EventSection.

Inherited Properties

Name Summary
lineClass val lineClass: KClass<T>
A class object used for instantiating new lines of type T.
lines val lines: MutableList<T>
The lines contained in this section.

Functions

Name Summary
serializeContents fun serializeContents(includeExtraData: Boolean): Sequence<String>
Returns a string sequence representing the serialization of the contents of this section, without the section name.

Inherited Functions

Name Summary
formatString fun formatString(): String
Returns a textual representation of the format line that starts the section.
parse open fun parse(data: List<KeyValLine>, extraData: ExtraData): Unit
Deserializes a list of lines in KeyValLine format and adds them to this section.
parseLine fun parseLine(line: KeyValLine, extraData: ExtraData): Unit
Parses a single line from a KeyValLine and adds it to this section.
serializeLine fun serializeLine(line: T, process: (MutableMap<String, Any>) -> Unit= { }):String
Serializes a single line according to the field order given by format in this section.