Created message class and updated menu system
This commit is contained in:
parent
6963cab2af
commit
7134891e55
12 changed files with 62 additions and 13 deletions
14
scripts/Classes/message.gd
Normal file
14
scripts/Classes/message.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
## Represents string that differs in fact value and a value which should be displayed to player
|
||||
class_name Message
|
||||
|
||||
## Fact value
|
||||
var fact: String
|
||||
## Display value
|
||||
var shown: String
|
||||
|
||||
## Returns message with set fact and shown strings
|
||||
static func create(fact: String, shown: String) -> Message:
|
||||
var msg = Message.new()
|
||||
msg.fact = fact
|
||||
msg.shown = shown
|
||||
return msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue