subkt / myaa.subkt.ass / EventSection
class EventSection :
FormatSection
<
EventLine
>
(source)
Represents an events section, containing a list of EventLine lines.
name
- The name of the section, usually Events
.
Name | Summary |
---|---|
<init> | EventSection(name: String ) Represents an events section, containing a list of EventLine lines. |
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. |
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. |
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. |
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. |