DialogicTimeline

This contains the source code documentation of the class DialogicTimeline.

DialogicTimeline

Inherits: Resource

Resource that defines a list of events. It can store them as text and load them from text too.

Properties

NameTypeDefault
eventsArray[]
events_processedboolfalse

Methods

ReturnsMethod
Variantget_event ( index: int )
voidfrom_text ( text: String )
Stringas_text ( )
voidprocess ( )
voidclean ( )

Property Descriptions

var events = []

No description available.


var events_processed = false

No description available.


Method Descriptions

func get_event ( index: int ) ⇒ Variant

Helper method


func from_text ( text: String ) ⇒ void

Parses the lines as seperate events and insert them in an array, so they can be converted to DialogicEvent's when processed later


func as_text ( ) ⇒ String

Stores all events in their text format and returns them as a string


func process ( ) ⇒ void

Method that loads all the event resources from the strings, if it wasn't done before


func clean ( ) ⇒ void

This method makes sure that all events in a timeline are correctly reset