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
Stringas_text ( )
voidclean ( )
voidfrom_text ( text: String )
Variantget_event ( index: int )
voidprocess ( )

Property Descriptions

var events =

No description available.


var events_processed = false

No description available.


Method Descriptions

func as_text ( ) ⇒ String

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


func clean ( ) ⇒ void

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


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 get_event ( index: int ) ⇒ Variant

Helper method


func process ( ) ⇒ void

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