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
Name | Type | Default |
---|---|---|
events | Array | [] |
events_processed | bool | false |
Methods
Returns | Method |
---|---|
Variant | get_event ( index : int ) |
void | from_text ( text : String ) |
String | as_text ( ) |
void | process ( ) |
void | clean ( ) |
Property Descriptions
No description available.
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
Stores all events in their text format and returns them as a string
Method that loads all the event resources from the strings, if it wasn't done before
This method makes sure that all events in a timeline are correctly reset