Texts (data type) - SFTtech/openage GitHub Wiki
The String type, called text
, is one of the primitive data types supported by nyan.
string : text = "Hello, World!"
Characters of the text type are surrounded by quatation marks (""
). Texts can contain non-ASCII characters.
Unit():
name : text
Spearman(Unit):
name = "Spearman"
The text name
has the value Spearman
.
Unit():
name : text = "Unit"
Archer(Unit):
name = "Archer"
Overwrites the old value with a new one.
Spearman():
name = "Spearman"
Emphasize<Spearman>():
name += "!"
Appends the given text to the end of another text.